diff options
author | Carlos Rica <jasampler@gmail.com> | 2008-04-09 13:07:14 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-10 00:20:31 -0700 |
commit | 3f36cbbaaf87b67abafa851e2808735553f92b06 (patch) | |
tree | ddd8abf256cc0925937be005da0d34b874d3410d /builtin-tag.c | |
parent | ee5a317e0130ab2db59db97c644576335530512d (diff) | |
download | git-3f36cbbaaf87b67abafa851e2808735553f92b06.tar.gz |
Fix documentation syntax of optional arguments in short options.
When an argument for an option is optional, like in -n from git-tag,
puting a space between the option and the argument is interpreted
as a missing argument for the option plus an isolated argument.
Documentation now reflects the need to write the parameter following
the option -n, as in "git tag -nARG", for instance.
Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-tag.c')
-rw-r--r-- | builtin-tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-tag.c b/builtin-tag.c index 9a59caf70d..95ecfdbab6 100644 --- a/builtin-tag.c +++ b/builtin-tag.c @@ -16,7 +16,7 @@ static const char * const git_tag_usage[] = { "git-tag [-a|-s|-u <key-id>] [-f] [-m <msg>|-F <file>] <tagname> [<head>]", "git-tag -d <tagname>...", - "git-tag -l [-n [<num>]] [<pattern>]", + "git-tag -l [-n[<num>]] [<pattern>]", "git-tag -v <tagname>...", NULL }; |