mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 19:29:38 +02:00
Merge branch '206-fix-broken-argument-option-handling' into 'master'
Resolve "fix broken argument/option handling" Closes #206 See merge request Pmodules/src!183
This commit is contained in:
@@ -3276,9 +3276,12 @@ case ${subcommand} in
|
||||
esac
|
||||
|
||||
# parse arguments of the sub-command and call it
|
||||
set -- $("${getopt}" --unquoted --name="${CMD}" ${Options[${subcommand}]} -- "${opts[@]}" "$@" ) \
|
||||
temp=$("${getopt}" --name="${CMD}" ${Options[${subcommand}]} -- "${opts[@]}" "$@" ) \
|
||||
|| print_help "${subcommand}"
|
||||
subcommand_${Subcommands[$subcommand]} $@
|
||||
eval set -- "${temp}"
|
||||
unset temp
|
||||
|
||||
subcommand_${Subcommands[$subcommand]} "$@"
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
|
||||
Reference in New Issue
Block a user