You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Arguments: command and arguments of a help command
123
+
# Output: declaration of an array variable named custommode_options with the list of options that are specific to the mode. Result has to be loaded using eval.
124
+
functionparse_custommode_options_from_help() {
125
+
local IFS=$'\n'
126
+
local custommode="$1"
127
+
shift
128
+
[[ $DEBUG ]] &&set -x
129
+
local HELP_OUTPUT=( $(perl $*2>/dev/null ) )
130
+
[[ $DEBUG ]] &&set +x
131
+
132
+
declare -a custommode_options
133
+
134
+
# Remove all lines above ".* $custommode Options:"
0 commit comments