Pmodules/modulecmd.bash.in:
- bugfix in 'module use' with out args
This commit is contained in:
@@ -1156,9 +1156,13 @@ subcommand_use() {
|
|||||||
subcommand_generic1 use ${subcommand_switches} "${dir}"
|
subcommand_generic1 use ${subcommand_switches} "${dir}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local opts=''
|
||||||
|
opts=$(pmodules::get_options -- '' "$@") || subcommand_help_unuse
|
||||||
|
eval set -- "${opts}"
|
||||||
|
|
||||||
if [[ $# == 0 ]]; then
|
if [[ $# == 1 ]]; then
|
||||||
std::print_info
|
print_info
|
||||||
else
|
else
|
||||||
use "$@"
|
use "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user