Re: [PATCH] rev-parse --parseopt: add the --sticked-long mode
On 10/25/2013 10:18 PM, Nicolas Vigier wrote:
Show 14 quoted lines
> Add the --sticked-long option to output the options in their long form
> if available, and with their arguments sticked.
>
> Contrary to the default form (non sticked arguments and short options),
> this can be parsed unambiguously when using options with optional
> arguments :
>
> - in the non sticked form, when an option is taking an optional argument
> you cannot know if the next argument is its optional argument, or the
> next option.
>
> - the long options form allows to differenciate between an empty argument
> '--option=' and an unset argument '--option', which is not possible
> with short options.
Trivial: s/differenciate/differentiate/
Michael
--
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/