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>
freku045@student.liu.se committed
Dec 13, 2005 at 23:30 UTC
87358b7a193e24ed6cbe0dd8287a5c558a8ac421
1 file changed
+5
git-fetch.sh
+5
@@ -1,5 +1,7 @@
1
#!/bin/sh
2
#
3
+
4
+USAGE='<fetch-options> <repository> <refspec>...'
5
. git-sh-setup
6
. git-parse-remote
7
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
@@ -34,6 +36,9 @@ do
36
-v|--verbose)
37
verbose=Yes
38
;;
39
+ -*)
40
+ usage
41
+ ;;
42
*)
43
break
44
;;