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>maint
parent
d20e2f161b
commit
7ab099d220
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
USAGE='[-n] [--] [<head>...]'
|
||||||
. git-sh-setup
|
. git-sh-setup
|
||||||
|
|
||||||
dryrun=
|
dryrun=
|
||||||
|
@ -9,7 +10,7 @@ do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-n) dryrun=-n echo=echo ;;
|
-n) dryrun=-n echo=echo ;;
|
||||||
--) break ;;
|
--) break ;;
|
||||||
-*) echo >&2 "usage: git-prune [ -n ] [ heads... ]"; exit 1 ;;
|
-*) usage ;;
|
||||||
*) break ;;
|
*) break ;;
|
||||||
esac
|
esac
|
||||||
shift;
|
shift;
|
||||||
|
|
Loading…
Reference in New Issue