summaryrefslogtreecommitdiff
path: root/functions/usage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/usage.sh')
-rwxr-xr-xfunctions/usage.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/functions/usage.sh b/functions/usage.sh
index 86809ad53..038271107 100755
--- a/functions/usage.sh
+++ b/functions/usage.sh
@@ -10,22 +10,19 @@
Usage ()
{
- printf "%s - %s\n" "${PROGRAM}" "${DESCRIPTION}"
- echo
- Echo "Usage:"
- echo
+ printf "%s - %s\n\n" "${PROGRAM}" "${DESCRIPTION}"
+ printf "Usage:\n\n"
if [ -n "${USAGE}" ]
then
- Echo " ${USAGE}"
- echo
+ printf " %s\n" "${USAGE}"
fi
printf " %s [-h|--help]\n" "${PROGRAM}"
printf " %s [-u|--usage]\n" "${PROGRAM}"
printf " %s [-v|--version]\n" "${PROGRAM}"
- echo
- Echo "Try \"%s --help\" for more information." "${PROGRAM}"
+
+ printf "\nTry \"%s --help\" for more information.\n" "${PROGRAM}"
exit 1
}