diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-02-17 15:46:31 -0600 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-02-17 13:46:31 -0800 |
commit | 524303db06797c87dfedea4d043b1f13132496d2 (patch) | |
tree | 36b46f1454e03f9dc99e95113e2ad4e64d2d0564 | |
parent | e492aff4f708524a56f60f5ca200c8a97e2d3b4c (diff) | |
download | spack-524303db06797c87dfedea4d043b1f13132496d2.tar.gz spack-524303db06797c87dfedea4d043b1f13132496d2.tar.bz2 spack-524303db06797c87dfedea4d043b1f13132496d2.tar.xz spack-524303db06797c87dfedea4d043b1f13132496d2.zip |
Set default module type based on modules.yaml (#3173)
-rw-r--r-- | lib/spack/spack/cmd/common/arguments.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/common/arguments.py b/lib/spack/spack/cmd/common/arguments.py index b527c7f138..6fc3b5d3cf 100644 --- a/lib/spack/spack/cmd/common/arguments.py +++ b/lib/spack/spack/cmd/common/arguments.py @@ -79,8 +79,10 @@ _arguments['constraint'] = Args( help='constraint to select a subset of installed packages') _arguments['module_type'] = Args( - '-m', '--module-type', help='type of module files', - default='tcl', choices=spack.modules.module_types) + '-m', '--module-type', + choices=spack.modules.module_types.keys(), + default=spack.modules.module_types.keys()[0], + help='type of module files [default: %(default)s]') _arguments['yes_to_all'] = Args( '-y', '--yes-to-all', action='store_true', dest='yes_to_all', |