From: Julien Danjou Date: Thu, 02 Apr 2009 08:47:08 GMT Subject: [PATCH] git submodule: fix add usage line Message-ID: <1238662028-9557-1-git-send-email-julien@danjou.info> Actually, cmd_add() parse options first and stop as soon as an unknown word is encoutered. So we need to put the option like -b at the beginning, or the option parsing loop will be escaped before we got the change to have our -b option parsed. Signed-off-by: Julien Danjou --- git-submodule.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-submodule.sh b/git-submodule.sh index 0a27232..7c2e060 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -5,7 +5,7 @@ # Copyright (c) 2007 Lars Hjemli USAGE="[--quiet] [--cached] \ -[add [-b branch] ]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit ] []] \ +[add [-b branch] ]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit ] []] \ [--] [...]|[foreach ]|[sync [--] [...]]" OPTIONS_SPEC= . git-sh-setup -- 1.6.2.1