Permalink
Browse files

--help also invokes help

  • Loading branch information...
1 parent 8edd191 commit 312210dd4419eabcd3c14c6e4cd45277c24ca9e2 @Niggler Niggler committed Aug 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 spark
View
@@ -66,7 +66,7 @@ if [ "$BASH_SOURCE" == "$0" ]; then
cat <<EOF
USAGE:
- spark [-h] VALUE,...
+ spark [-h|--help] VALUE,...
EXAMPLES:
spark 1 5 22 13 53
@@ -79,7 +79,7 @@ EOF
}
# show help for no arguments if stdin is a terminal
- if { [ -z "$1" ] && [ -t 0 ] ; } || [ "$1" == '-h' ]
+ if { [ -z "$1" ] && [ -t 0 ] ; } || [ "$1" == '-h' ] || [ "$1" == '--help' ]
then
help
exit 0

0 comments on commit 312210d

Please sign in to comment.