summaryrefslogtreecommitdiffstats
path: root/lib/cmd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmd.sh')
-rw-r--r--lib/cmd.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/cmd.sh b/lib/cmd.sh
index a14eb00..d05e7eb 100644
--- a/lib/cmd.sh
+++ b/lib/cmd.sh
@@ -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.