summaryrefslogtreecommitdiff
path: root/functions/usage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/usage.sh')
-rwxr-xr-xfunctions/usage.sh19
1 files changed, 9 insertions, 10 deletions
diff --git a/functions/usage.sh b/functions/usage.sh
index 06ad72132..794a45032 100755
--- a/functions/usage.sh
+++ b/functions/usage.sh
@@ -10,20 +10,19 @@
Usage ()
{
- printf "%s - %s\n\n" "${PROGRAM_NAME}" "${DESCRIPTION}"
- printf "Usage:\n\n"
+ echo "${PROGRAM_NAME} - ${DESCRIPTION}"
+ printf "\nUsage:\n\n"
- if [ -n "${USAGE}" ]
- then
- # printf without placeholder required here for correct \t and \n formatting of `lb config --usage`
+ if [ -n "${USAGE}" ]; then
+ # printf without placeholder required here for correct \t and \n formatting of `lb config` usage string
printf " ${USAGE}\n"
fi
- printf " %s [-h|--help]\n" "${PROGRAM}"
- printf " %s [-u|--usage]\n" "${PROGRAM}"
- printf " %s [-v|--version]\n" "${PROGRAM}"
-
- printf "\nTry \"%s --help\" for more information.\n" "${PROGRAM}"
+ echo " ${PROGRAM} [-h|--help]"
+ echo " ${PROGRAM} [-u|--usage]"
+ echo " ${PROGRAM} [-v|--version]"
+ echo
+ echo "Try \"${PROGRAM} --help\" for more information."
exit 1
}