summaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorfreku045@student.liu.se <freku045@student.liu.se>2005-12-13 23:30:31 +0100
committerJunio C Hamano <junkio@cox.net>2005-12-14 02:53:44 -0800
commit87358b7a193e24ed6cbe0dd8287a5c558a8ac421 (patch)
treebfd0c5c8b33048931d7c19ce31d4c38b9dd9ddd6 /git-fetch.sh
parent43a95cfbc9ce27bfb40746b90717e041805a906c (diff)
downloadgit-87358b7a193e24ed6cbe0dd8287a5c558a8ac421.tar.gz
git-fetch: Usage string clean-up, emit usage string at unrecognized option
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 14ea295113..767ca61ca6 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -1,5 +1,7 @@
#!/bin/sh
#
+
+USAGE='<fetch-options> <repository> <refspec>...'
. 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
;;