Commit cd810ab4 authored by gsell's avatar gsell

Pmodules/modulecmd.bash.in:

- bugfix in 'module use' with out args
parent 5b066ec1
......@@ -1156,9 +1156,13 @@ subcommand_use() {
subcommand_generic1 use ${subcommand_switches} "${dir}"
done
}
local opts=''
opts=$(pmodules::get_options -- '' "$@") || subcommand_help_unuse
eval set -- "${opts}"
if [[ $# == 0 ]]; then
std::print_info
if [[ $# == 1 ]]; then
print_info
else
use "$@"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment