Skip to content

Commit 9832447

Browse files
committed
Merge pull request holman#69 from Adys/master
Use $0 in the usage, instead of hardcoding the name "spark"
2 parents e2f3a98 + fae5393 commit 9832447

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spark

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,18 @@ if [ "$BASH_SOURCE" == "$0" ]; then
7373
# Prints the help text for spark.
7474
help()
7575
{
76+
local spark=$(basename $0)
7677
cat <<EOF
7778
7879
USAGE:
79-
spark [-h|--help] VALUE,...
80+
$spark [-h|--help] VALUE,...
8081
8182
EXAMPLES:
82-
spark 1 5 22 13 53
83+
$spark 1 5 22 13 53
8384
▁▁▃▂█
84-
spark 0,30,55,80,33,150
85+
$spark 0,30,55,80,33,150
8586
▁▂▃▄▂█
86-
echo 9 13 5 17 1 | spark
87+
echo 9 13 5 17 1 | $spark
8788
▄▆▂█▁
8889
EOF
8990
}

0 commit comments

Comments
 (0)