Skip to content

Commit 52a31c3

Browse files
committed
Merge pull request holman#62 from Niggler/master
--help also invokes help
2 parents 8edd191 + 312210d commit 52a31c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spark

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [ "$BASH_SOURCE" == "$0" ]; then
6666
cat <<EOF
6767
6868
USAGE:
69-
spark [-h] VALUE,...
69+
spark [-h|--help] VALUE,...
7070
7171
EXAMPLES:
7272
spark 1 5 22 13 53
@@ -79,7 +79,7 @@ EOF
7979
}
8080

8181
# show help for no arguments if stdin is a terminal
82-
if { [ -z "$1" ] && [ -t 0 ] ; } || [ "$1" == '-h' ]
82+
if { [ -z "$1" ] && [ -t 0 ] ; } || [ "$1" == '-h' ] || [ "$1" == '--help' ]
8383
then
8484
help
8585
exit 0

0 commit comments

Comments
 (0)