Set default module type based on modules.yaml (#3173)
This commit is contained in:
parent
e492aff4f7
commit
524303db06
@ -79,8 +79,10 @@ def _specs(self, **kwargs):
|
|||||||
help='constraint to select a subset of installed packages')
|
help='constraint to select a subset of installed packages')
|
||||||
|
|
||||||
_arguments['module_type'] = Args(
|
_arguments['module_type'] = Args(
|
||||||
'-m', '--module-type', help='type of module files',
|
'-m', '--module-type',
|
||||||
default='tcl', choices=spack.modules.module_types)
|
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(
|
_arguments['yes_to_all'] = Args(
|
||||||
'-y', '--yes-to-all', action='store_true', dest='yes_to_all',
|
'-y', '--yes-to-all', action='store_true', dest='yes_to_all',
|
||||||
|
Loading…
Reference in New Issue
Block a user