From 7ab099d220e5bbb5c6385c1beb5e70bbed930b4b Mon Sep 17 00:00:00 2001 From: "freku045@student.liu.se" Date: Tue, 13 Dec 2005 23:30:32 +0100 Subject: [PATCH] git-prune: Usage string clean-up, use the 'usage' function Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- git-prune.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-prune.sh b/git-prune.sh index 7e7f0ad5..7b61d05c 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; -- 2.11.0