summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/cmd/help.sh8
-rw-r--r--locale/en_US/pro_archman.sh4
2 files changed, 12 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
}
diff --git a/locale/en_US/pro_archman.sh b/locale/en_US/pro_archman.sh
index 185a673..512369e 100644
--- a/locale/en_US/pro_archman.sh
+++ b/locale/en_US/pro_archman.sh
@@ -26,6 +26,10 @@ msg_pro_archman_cmd_usage='Usage: %s [<option> ...] %s %s'
# lib/cmd/help.sh
msg_pro_archman_cmd_help_head='Usage: %s [<option> ...] <command>'
+msg_pro_archman_cmd_help_opts_head='Options:'
+msg_pro_archman_cmd_help_opt_h='print this help message'
+msg_pro_archman_cmd_help_opt_V='print version information'
+msg_pro_archman_cmd_help_opt_b='archive base directory'
msg_pro_archman_cmd_help_summary_head='Commands:'
msg_pro_archman_cmd_help_summary='print this help message'
msg_pro_archman_cmd_help_usage='[<command>]'