# Minor inconsistency: "git tag" requires space after -m.

3 messages from 2007-10-27 to 2007-10-27. Participants: Sergei Organov, Johannes Schindelin.
Thread: https://gitlist.dev/t/10485

## Sergei Organov, 2007-10-27 11:55

Subject: Minor inconsistency: "git tag" requires space after -m.
Message-ID: <ffv8ul$5a2$1@ger.gmane.org>
URL: https://gitlist.dev/e/ffv8ul%245a2%241%40ger.gmane.org

```
Hello,

It seems options parsing is somewhat broken in git-tag:

$ git tag -a -m"Annotated tag" annotated-tag
usage: git-tag [-n [<num>]] -l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d | -v] [-m <msg> | -F <file>] <tagname> [<head>]
$ git tag -a -m "Annotated tag" annotated-tag
$ git --version
git version 1.5.3.4

This is inconsistent with, say, "git commit", that groks -m"Message"
(without space after -m) just fine.

-- 
Sergei.

```

## Johannes Schindelin, 2007-10-27 12:48

Subject: Re: Minor inconsistency: "git tag" requires space after -m.
Message-ID: <Pine.LNX.4.64.0710271347510.4362@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0710271347510.4362%40racer.site
In-Reply-To: <ffv8ul$5a2$1@ger.gmane.org>

```
Hi,

On Sat, 27 Oct 2007, Sergei Organov wrote:

> It seems options parsing is somewhat broken in git-tag:
> 
> $ git tag -a -m"Annotated tag" annotated-tag
> usage: git-tag [-n [<num>]] -l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d | -v] [-m <msg> | -F <file>] <tagname> [<head>]
> $ git tag -a -m "Annotated tag" annotated-tag
> $ git --version
> git version 1.5.3.4
> 
> This is inconsistent with, say, "git commit", that groks -m"Message"
> (without space after -m) just fine.

As it happens, we are in the middle of adding our own option parser which 
probably solves the issue.  Can you please retest when we have that, and 
use it in builtin-tag?

Thanks,
Dscho

```

## Sergei Organov, 2007-10-27 13:14

Subject: Re: Minor inconsistency: "git tag" requires space after -m.
Message-ID: <ffvdir$g2n$1@ger.gmane.org>
URL: https://gitlist.dev/e/ffvdir%24g2n%241%40ger.gmane.org
In-Reply-To: <Pine.LNX.4.64.0710271347510.4362@racer.site>

```
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Hi,
>
> On Sat, 27 Oct 2007, Sergei Organov wrote:
>
>> It seems options parsing is somewhat broken in git-tag:
>> 
>> $ git tag -a -m"Annotated tag" annotated-tag
>> usage: git-tag [-n [<num>]] -l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d | -v] [-m <msg> | -F <file>] <tagname> [<head>]
>> $ git tag -a -m "Annotated tag" annotated-tag
>> $ git --version
>> git version 1.5.3.4
>> 
>> This is inconsistent with, say, "git commit", that groks -m"Message"
>> (without space after -m) just fine.
>
> As it happens, we are in the middle of adding our own option parser which 
> probably solves the issue.  Can you please retest when we have that, and 
> use it in builtin-tag?

I'm 100% sure there will be no inconsistencies once you unify options
parsing among the tools, but I won't refrain from re-testing this
anyway.

-- 
Sergei.

```
