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:
freku045@student.liu.se 2005-12-13 23:30:32 +01:00 committed by Junio C Hamano
parent d20e2f161b
commit 7ab099d220

View file

@ -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;