summaryrefslogtreecommitdiffstats
path: root/lib/cmd/help.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-11 23:49:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-11 23:49:07 (EDT)
commit2f934b0cdfed96aa629bcc94f878aca225ec9e7e (patch)
tree0ed1218f000f86ccbb61d696395158fc07d24001 /lib/cmd/help.sh
parentac1018d70c6177f194ba568dd2660dec9120fab6 (diff)
help: Document options.
Diffstat (limited to 'lib/cmd/help.sh')
-rw-r--r--lib/cmd/help.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/cmd/help.sh b/lib/cmd/help.sh
index 625b2d1..733e9ed 100644
--- a/lib/cmd/help.sh
+++ b/lib/cmd/help.sh
@@ -20,6 +20,7 @@
cmd_help_main()
{
local cmd
+ local opt
if [ ${#} -eq 1 ]; then
cmd="${1}"
@@ -30,6 +31,13 @@ cmd_help_main()
fi
printf "$(get_msg 'cmd_help_head')\n\n" "${0}"
+
+ printf "$(get_msg 'cmd_help_opts_head')\n"
+ for opt in h V b; do
+ printf ' -%c %s\n' "${opt}" "$(get_msg "cmd_help_opt_${opt}")"
+ done
+ printf '\n'
+
printf "$(get_msg 'cmd_help_summary_head')\n"
print_cmd_summaries
}