From: freku045@student.liu.se Date: Tue, 13 Dec 2005 22:30:32 +0000 (+0100) Subject: git-prune: Usage string clean-up, use the 'usage' function X-Git-Tag: v0.99.9n^2~7^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7ab099d220e5bbb5c6385c1beb5e70bbed930b4b;p=git.git git-prune: Usage string clean-up, use the 'usage' function Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- diff --git a/git-prune.sh b/git-prune.sh index 7e7f0ad56..7b61d05c4 100755 --- a/git-prune.sh +++ b/git-prune.sh @@ -1,5 +1,6 @@ #!/bin/sh +USAGE='[-n] [--] [...]' . 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;