diff options
author | Sergey Kosukhin <skosukhin@gmail.com> | 2016-12-01 18:52:56 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-12-01 11:52:56 -0600 |
commit | 051720defd636fa8e1a86464160436fc41ae90fa (patch) | |
tree | 3fe80d6f79ed97a08f741f38f13d24667993d207 /lib | |
parent | bc4237c93ed754c6d5a41a065bf3a2d4ab85161b (diff) | |
download | spack-051720defd636fa8e1a86464160436fc41ae90fa.tar.gz spack-051720defd636fa8e1a86464160436fc41ae90fa.tar.bz2 spack-051720defd636fa8e1a86464160436fc41ae90fa.tar.xz spack-051720defd636fa8e1a86464160436fc41ae90fa.zip |
More informative help messages for spack config. (#2453)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/config.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/config.py b/lib/spack/spack/cmd/config.py index 5e041192e2..3288c4cb8b 100644 --- a/lib/spack/spack/cmd/config.py +++ b/lib/spack/spack/cmd/config.py @@ -35,10 +35,18 @@ def setup_parser(subparser): sp = subparser.add_subparsers(metavar='SUBCOMMAND', dest='config_command') get_parser = sp.add_parser('get', help='Print configuration values.') - get_parser.add_argument('section', help="Configuration section to print.") + get_parser.add_argument('section', + help="Configuration section to print. " + "Options: %(choices)s.", + metavar='SECTION', + choices=spack.config.section_schemas) edit_parser = sp.add_parser('edit', help='Edit configuration file.') - edit_parser.add_argument('section', help="Configuration section to edit") + edit_parser.add_argument('section', + help="Configuration section to edit. " + "Options: %(choices)s.", + metavar='SECTION', + choices=spack.config.section_schemas) def config_get(args): |