docs: Alphabetize create cmd template options (#13993)

* Bugfix: Display template options for create command.

* Alphabetize "spack create" template options for readability

* Revert template choices format; alphabetize list

* flake8 fix
This commit is contained in:
Tamara Dahlgren 2019-12-06 16:07:45 -08:00 committed by Adam J. Stewart
parent 99c9365974
commit 842e9d9375

View File

@ -427,7 +427,8 @@ def setup_parser(subparser):
'-n', '--name',
help="name of the package to create")
subparser.add_argument(
'-t', '--template', metavar='TEMPLATE', choices=templates.keys(),
'-t', '--template', metavar='TEMPLATE',
choices=sorted(templates.keys()),
help="build system template to use. options: %(choices)s")
subparser.add_argument(
'-r', '--repo',