git-prune: Usage string clean-up, use the 'usage' function
authorfreku045@student.liu.se <freku045@student.liu.se>
Tue, 13 Dec 2005 22:30:32 +0000 (23:30 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 10:53:44 +0000 (02:53 -0800)
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-prune.sh

index 7e7f0ad..7b61d05 100755 (executable)
@@ -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;