summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-02-11 00:15:35 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2018-02-12 20:25:17 -0800
commit39e6d54956e18a6b04ef43f61df0a5633ed9dc46 (patch)
tree49c3ae9df3d35377dc32353cb46a16f9a58426c7 /lib
parent8f52de32b6ce81d2c6a351bf16792b86429e10c5 (diff)
downloadspack-39e6d54956e18a6b04ef43f61df0a5633ed9dc46.tar.gz
spack-39e6d54956e18a6b04ef43f61df0a5633ed9dc46.tar.bz2
spack-39e6d54956e18a6b04ef43f61df0a5633ed9dc46.tar.xz
spack-39e6d54956e18a6b04ef43f61df0a5633ed9dc46.zip
make defaults in command help look like standard argparse
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/bootstrap.py2
-rw-r--r--lib/spack/spack/cmd/flake8.py2
-rw-r--r--lib/spack/spack/cmd/install.py2
-rw-r--r--lib/spack/spack/cmd/log_parse.py4
-rw-r--r--lib/spack/spack/main.py4
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/spack/spack/cmd/bootstrap.py b/lib/spack/spack/cmd/bootstrap.py
index b41b568fb3..99b6b373db 100644
--- a/lib/spack/spack/cmd/bootstrap.py
+++ b/lib/spack/spack/cmd/bootstrap.py
@@ -35,7 +35,7 @@ level = "long"
def setup_parser(subparser):
subparser.add_argument(
'-j', '--jobs', action='store', type=int,
- help="explicitly set number of make jobs. default is #cpus")
+ help="explicitly set number of make jobs (default: #cpus)")
subparser.add_argument(
'--keep-prefix', action='store_true', dest='keep_prefix',
help="don't remove the install prefix if installation fails")
diff --git a/lib/spack/spack/cmd/flake8.py b/lib/spack/spack/cmd/flake8.py
index 887348e9f6..d767e310da 100644
--- a/lib/spack/spack/cmd/flake8.py
+++ b/lib/spack/spack/cmd/flake8.py
@@ -226,7 +226,7 @@ def setup_parser(subparser):
help="send filtered files to stdout as well as temp files")
subparser.add_argument(
'-r', '--root-relative', action='store_true', default=False,
- help="print root-relative paths (default is cwd-relative)")
+ help="print root-relative paths (default: cwd-relative)")
subparser.add_argument(
'-U', '--no-untracked', dest='untracked', action='store_false',
default=True, help="exclude untracked files from checks")
diff --git a/lib/spack/spack/cmd/install.py b/lib/spack/spack/cmd/install.py
index 8b6c04bfcc..ceb03f938c 100644
--- a/lib/spack/spack/cmd/install.py
+++ b/lib/spack/spack/cmd/install.py
@@ -56,7 +56,7 @@ the dependencies"""
)
subparser.add_argument(
'-j', '--jobs', action='store', type=int,
- help="explicitly set number of make jobs. default is #cpus")
+ help="explicitly set number of make jobs (default: #cpus)")
subparser.add_argument(
'--overwrite', action='store_true',
help="reinstall an existing spec, even if it has dependents")
diff --git a/lib/spack/spack/cmd/log_parse.py b/lib/spack/spack/cmd/log_parse.py
index 55170e7d5a..b5ce4fc9c9 100644
--- a/lib/spack/spack/cmd/log_parse.py
+++ b/lib/spack/spack/cmd/log_parse.py
@@ -49,8 +49,8 @@ def setup_parser(subparser):
help="wrap width: auto-size to terminal by default; 0 for no wrap")
subparser.add_argument(
'-j', '--jobs', action='store', type=int, default=None,
- help="number of jobs to parse log file; default is 1 for short logs, "
- "ncpus for long logs")
+ help="number of jobs to parse log file (default: 1 for short logs, "
+ "ncpus for long logs)")
subparser.add_argument(
'file', help="a log file containing build output, or - for stdin")
diff --git a/lib/spack/spack/main.py b/lib/spack/spack/main.py
index f2e5d8fafb..4c2b09f6ba 100644
--- a/lib/spack/spack/main.py
+++ b/lib/spack/spack/main.py
@@ -278,7 +278,7 @@ def make_argument_parser():
help="show this help message and exit")
parser.add_argument('--color', action='store', default='auto',
choices=('always', 'never', 'auto'),
- help="when to colorize output; default is auto")
+ help="when to colorize output (default: auto)")
parser.add_argument('-d', '--debug', action='store_true',
help="write out debug logs during compile")
parser.add_argument('-D', '--pdb', action='store_true',
@@ -294,7 +294,7 @@ def make_argument_parser():
help="profile and sort by one or more of:\n[%s]" %
',\n '.join([', '.join(line) for line in stat_lines]))
parser.add_argument('--lines', default=20, action='store',
- help="lines of profile output; default 20; or 'all'")
+ help="lines of profile output or 'all' (default: 20)")
parser.add_argument('-v', '--verbose', action='store_true',
help="print additional output during builds")
parser.add_argument('-s', '--stacktrace', action='store_true',