Skip to content

Commit

Permalink
Better USAGE message
Browse files Browse the repository at this point in the history
  • Loading branch information
al-the-x committed Dec 28, 2015
1 parent 64639e1 commit 2b042bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/git-touch
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/usr/bin/env bash

test $# -lt 1 && echo "filename required" 1>&2 && exit 1
USAGE(){
echo "git touch <filename> [ <filename> . . .]" 1>&2
exit 1
}

filenames="$@"
test $# -lt 1 && USAGE

for filename in $@; do
touch "$filename" \
Expand Down

0 comments on commit 2b042bd

Please sign in to comment.