diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2019-12-06 16:07:45 -0800 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-12-06 18:07:45 -0600 |
commit | 842e9d93756b7459a2b87e01506dca4e3d83e70f (patch) | |
tree | 1f340cd38a3b98413a936c9500e2ace600316bed /lib | |
parent | 99c9365974c4a4e282b7e988bb1942c19129cb02 (diff) | |
download | spack-842e9d93756b7459a2b87e01506dca4e3d83e70f.tar.gz spack-842e9d93756b7459a2b87e01506dca4e3d83e70f.tar.bz2 spack-842e9d93756b7459a2b87e01506dca4e3d83e70f.tar.xz spack-842e9d93756b7459a2b87e01506dca4e3d83e70f.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/create.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py index 625a2da08c..a64d12539b 100644 --- a/lib/spack/spack/cmd/create.py +++ b/lib/spack/spack/cmd/create.py @@ -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', |