Re: [PATCH] rev-parse --parseopt: fix handling of optional arguments
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Oct 16, 2013, 07:04 UTC
- Message-ID
- <525E3A80.5000500@viscovery.net>
- In-Reply-To
- <20131015235739.GI9464@google.com>
Am 10/16/2013 1:57, schrieb Jonathan Nieder:
Show 16 quoted lines
> Junio C Hamano wrote: > >> You just made these two that the user clearly meant to express two >> different things indistinguishable. >> >> opt.sh -S >> opt.sh -S '' > [...] >> And that is exactly why gitcli.txt tells users to use the 'sticked' >> form, and ends the bullet point with: >> >> An option that takes optional option-argument must be written in >> the 'sticked' form. > > Yes, another possibility in that vein would be to teach rev-parse > --parseopt an OPTIONS_LONG_STICKED output format, and then parse with
Aren't you people trying to solve something that can't besolved? What does
git commit -S LICENSE
mean? Commit the index and sign with the key-id "LICENSE" or commit just the file "LICENSE" with the default key-id?
-- Hannes