mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-12 17:23:52 +01:00
Merge branch '147-modmanage-set-program-name-in-getopt' into 'master'
Resolve "modmanage: set program name in getopt" Closes #147 See merge request Pmodules/src!118
This commit is contained in:
commit
a827314391
1 file changed
+1
-1
@@ -655,7 +655,7 @@ if [[ "${subcommand}" != "init" ]] && [[ -z "${PMODULES_ROOT}" ]]; then
|
||||
std::die 1 "Error: No current module environment configured!"
|
||||
fi
|
||||
|
||||
tmp=$("${getopt}" ${Options[${subcommand}]} -- "${opts[@]}" "$@" ) \
|
||||
tmp=$("${getopt}" --name="${CMD}" ${Options[${subcommand}]} -- "${opts[@]}" "$@" ) \
|
||||
|| print_help "${subcommand}"
|
||||
eval args=( "$tmp" )
|
||||
unset tmp
|
||||
|
||||
Reference in new issue
Block a user