From 842e9d93756b7459a2b87e01506dca4e3d83e70f Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Fri, 6 Dec 2019 16:07:45 -0800 Subject: 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 --- lib/spack/spack/cmd/create.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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', -- cgit v1.2.3-70-g09d2