diff --git a/lib/spack/spack/cmd/common/arguments.py b/lib/spack/spack/cmd/common/arguments.py index b527c7f1387..6fc3b5d3cf6 100644 --- a/lib/spack/spack/cmd/common/arguments.py +++ b/lib/spack/spack/cmd/common/arguments.py @@ -79,8 +79,10 @@ def _specs(self, **kwargs): 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',