From eabf10b256d49440dd6ae5ffae413093c2d07ac6 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Tue, 29 Nov 2016 11:46:55 +1100 Subject: [PATCH] Add -h/--help --- acts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/acts b/acts index 1fb9286..4f3788e 100755 --- a/acts +++ b/acts @@ -12,6 +12,14 @@ if [ "$#" = "1" ] && [ "$1" = "--version" ]; then exit 0 fi +if [ "$#" = "1" ] && ([ "$1" = "-h" ] || [ "$1" = "--help" ]) ; then + echo "usage: acts" + echo + echo "Configuration should be in /etc/acts.conf or /usr/local/etc/acts.conf" + echo "See https://github.com/alexjurkiewicz/acts for more information." + exit 0 +fi + starttime=$(date +%s) # set these so we can define the log_functions early