From: freku045@student.liu.se Date: Tue, 13 Dec 2005 22:30:32 +0000 (+0100) Subject: git-repack: Usage string clean-up, emit usage at incorrect invocation X-Git-Tag: v0.99.9n^2~7^2~1 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=9678faaaffd3eba057bf1cb643399c5a5365a611;p=git.git git-repack: Usage string clean-up, emit usage at incorrect invocation Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- diff --git a/git-repack.sh b/git-repack.sh index 430ddc5a..1fafb6ec 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -3,6 +3,7 @@ # Copyright (c) 2005 Linus Torvalds # +USAGE='[-a] [-d] [-l] [-n]' . git-sh-setup no_update_info= all_into_one= remove_redundant= local= @@ -13,7 +14,7 @@ do -a) all_into_one=t ;; -d) remove_redundant=t ;; -l) local=t ;; - *) break ;; + *) usage ;; esac shift done