mirror of
https://github.com/tj/git-extras.git
synced 2026-09-15 18:06:24 -04:00
Better USAGE message
This commit is contained in:
parent
64639e1437
commit
2b042bdd59
|
|
@ -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" \
|
||||
|
|
|
|||
Loading…
Reference in a new issue