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>
This commit is contained in:
parent
43a95cfbc9
commit
87358b7a19
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
|
||||||
|
USAGE='<fetch-options> <repository> <refspec>...'
|
||||||
. git-sh-setup
|
. git-sh-setup
|
||||||
. git-parse-remote
|
. git-parse-remote
|
||||||
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
|
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
|
||||||
@ -34,6 +36,9 @@ do
|
|||||||
-v|--verbose)
|
-v|--verbose)
|
||||||
verbose=Yes
|
verbose=Yes
|
||||||
;;
|
;;
|
||||||
|
-*)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user