From: freku045@student.liu.se Date: Tue, 13 Dec 2005 22:30:31 +0000 (+0100) Subject: git-fetch: Usage string clean-up, emit usage string at unrecognized option X-Git-Tag: v0.99.9n^2~7^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=87358b7a193e24ed6cbe0dd8287a5c558a8ac421;p=git.git git-fetch: Usage string clean-up, emit usage string at unrecognized option Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- diff --git a/git-fetch.sh b/git-fetch.sh index 14ea29511..767ca61ca 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -1,5 +1,7 @@ #!/bin/sh # + +USAGE=' ...' . git-sh-setup . git-parse-remote _x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' @@ -34,6 +36,9 @@ do -v|--verbose) verbose=Yes ;; + -*) + usage + ;; *) break ;;