summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/cmd.sh3
-rw-r--r--lib/cmd/help.sh2
2 files changed, 2 insertions, 3 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.
diff --git a/lib/cmd/help.sh b/lib/cmd/help.sh
index e186663..42b1e63 100644
--- a/lib/cmd/help.sh
+++ b/lib/cmd/help.sh
@@ -33,7 +33,7 @@ cmd_help_main()
printf "$(get_msg 'cmd_help_head')\n\n" "${0}"
printf "$(get_msg 'cmd_help_opts_head')\n"
- print_opt_summaries 'hVb:'
+ print_opt_summaries
printf '\n'
printf "$(get_msg 'cmd_help_summary_head')\n"