Fix to option text for help command. (#12444)

This commit is contained in:
Chris Green 2019-08-21 19:11:24 -05:00 committed by Peter Scheibel
parent 9ae6a07fe8
commit ccb688f575
2 changed files with 3 additions and 3 deletions

View file

@ -86,12 +86,12 @@ def setup_parser(subparser):
help_all_group = subparser.add_mutually_exclusive_group()
help_all_group.add_argument(
'-a', '--all', action='store_const', const='long', default='short',
help='print all available commands')
help='list all available commands and options')
help_spec_group = subparser.add_mutually_exclusive_group()
help_spec_group.add_argument(
'--spec', action='store_const', dest='guide', const='spec',
default=None, help='print all available commands')
default=None, help='help on the package specification syntax')
def help(parser, args):

View file

@ -246,7 +246,7 @@ def add_subcommand_group(title, commands):
{help}:
spack help --all list all commands and options
spack help <command> help on a specific command
spack help --spec help on the spec syntax
spack help --spec help on the package specification syntax
spack docs open http://spack.rtfd.io/ in a browser"""
.format(help=section_descriptions['help']))