Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

--help also invokes help

  • Loading branch information...
commit 312210dd4419eabcd3c14c6e4cd45277c24ca9e2 1 parent 8edd191
@Niggler Niggler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spark
View
4 spark
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.