mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
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
|
||||
#
|
||||
|
||||
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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user