git-prune: Usage string clean-up, use the 'usage' function
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
d20e2f161b
commit
7ab099d220
@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
USAGE='[-n] [--] [<head>...]'
|
||||
. git-sh-setup
|
||||
|
||||
dryrun=
|
||||
@ -9,7 +10,7 @@ do
|
||||
case "$1" in
|
||||
-n) dryrun=-n echo=echo ;;
|
||||
--) break ;;
|
||||
-*) echo >&2 "usage: git-prune [ -n ] [ heads... ]"; exit 1 ;;
|
||||
-*) usage ;;
|
||||
*) break ;;
|
||||
esac
|
||||
shift;
|
||||
|
Loading…
Reference in New Issue
Block a user