summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/messages.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/messages.sh b/lib/messages.sh
index 3894778..c2c381e 100644
--- a/lib/messages.sh
+++ b/lib/messages.sh
@@ -64,9 +64,19 @@ oh_info()
return 0
}
+oh_usage()
+{
+ _util="$(echo "${0##*/}" | sed 's/-/_/g')"
+ _usage_str="$(eval echo "\$\{oh_str_usage_${_util}\}")"
+ : "${_usage_str:=${oh_str_usage_none}}"
+ printf '%s\n' "${_usage_str}"
+}
+
oh_help()
{
- _help_str="$(eval echo "\$\{oh_str_help_${0##*/}\}")"
+ oh_usage
+ _util="$(echo "${0##*/}" | sed 's/-/_/g')"
+ _help_str="$(eval echo "\$\{oh_str_help_${_util}\}")"
: "${_help_str:=${oh_str_help_none}}"
printf '%s\n' "${_help_str}"
}