Skip to content

Commit

Permalink
Add -h/--help
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjurkiewicz committed Nov 29, 2016
1 parent 6727b68 commit eabf10b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions acts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eabf10b

Please sign in to comment.