From: imyousuf@gmail.com Date: Mon, 05 May 2008 09:09:38 GMT Subject: [PATCH v2 1/5] git-submodule.sh: Add Long Usage instead of simple usage Message-ID: <1209978582-5785-1-git-send-email-imyousuf@gmail.com> From: Imran M Yousuf With the already available commands the synopsis is quite hard to read; thus converted it to Long usage instead. In process also updated the file comment. Signed-off-by: Imran M Yousuf --- git-submodule.sh | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/git-submodule.sh b/git-submodule.sh index ce0f00c..a5ee2e5 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -1,12 +1,17 @@ #!/bin/sh # -# git-submodules.sh: add, init, update or list git submodules +# git-submodules.sh: add, init, update, summary or status git submodules # # Copyright (c) 2007 Lars Hjemli -USAGE="[--quiet] [--cached] \ -[add [-b branch]|status|init|update|summary [-n|--summary-limit ] []] \ -[--] [...]" +USAGE=" +Use $0 -h for more details" +# Did not use '\' at the end of the lines to ensure that each synopsis +# are in a separate line +LONG_USAGE="$0 add [-q|--quiet] [-b|--branch branch] [] +$0 [status] [-q|--quiet] [-c|--cached] [--] [...] +$0 init|update [-q|--quiet] [--] [...] +$0 summary [--cached] [-n|--summary-limit ] []" OPTIONS_SPEC= . git-sh-setup require_work_tree -- 1.5.4.2