Subject: Re: [PATCH] parse-options: detect attempt to add a duplicate short option name

From: Junio C Hamano <[email-masked]>
Date: Wed, 03 Sep 2014 15:16:29 -0700

René Scharfe <[email-masked]> writes:

>> It bugged me enough that we didn't identify which short option
>> letter we were complaining about
>
> The old code did report the short option.  E.g. for t1502 it said:
>
> 	error: BUG: switch 'b' short name already used
>
> You can leave that to optbug(), no need for the strbuf.

Not quite, as an opt with long name is reported with the long name
only, which is not very nice when the problem we are reporting is
about its short variant.

> Space is allowed as a short option by the code; intentionally?

I didn't think of a strong reason to declare either way, so, yes it
was deliberate that I didn't tighten to disallow.