From 0c6fbc635c63b577a9be0d60657e3a9e4d4008a4 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 12 Nov 2021 10:55:29 +0100 Subject: [PATCH] modmanage: use 'modmanage' as name with getopt --- Pmodules/modmanage.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modmanage.bash.in b/Pmodules/modmanage.bash.in index 52a9895..4a09067 100755 --- a/Pmodules/modmanage.bash.in +++ b/Pmodules/modmanage.bash.in @@ -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