diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-12 14:49:11 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-12 14:49:11 (EDT) |
commit | 6b6ef334901b74677a484624bde426c425795e61 (patch) | |
tree | c6a3ea794ce2d676e6789a6c68bef14244d5cfa9 /lib/cmd.sh | |
parent | 04eff6b0b42f46088c3e6da0f04d34b366f2ac34 (diff) |
OPTSTRING: New global variable.
Diffstat (limited to 'lib/cmd.sh')
-rw-r--r-- | lib/cmd.sh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -39,14 +39,13 @@ load_cmds() print_opt_summaries() { - local optstring="${1}" local padding= local opt= local opt_out= local summary= padding="$(printf '%24s' '')" - for opt in $(printf '%s' "${optstring}" | sed 's/\([a-zA-Z0-9]\)/ \1/g') + for opt in $(printf '%s' "${OPTSTRING}" | sed 's/\([a-zA-Z0-9]\)/ \1/g') do if [ ${#opt} -eq 1 ]; then # No argument expected. |