When you run spack module refresh --help, it queries spack.modules.module_types to get a list of choices for --module-type. But regardless of whether or not tcl is in your list of enabled modules, the default is always tcl. We should default to whatever is enabled. If there are multiple module types enabled, then we should refresh all of them.
When you run
spack module refresh --help, it queriesspack.modules.module_typesto get a list of choices for--module-type. But regardless of whether or nottclis in your list of enabled modules, the default is alwaystcl. We should default to whatever is enabled. If there are multiple module types enabled, then we should refresh all of them.