From: Michael Haggerty Date: Sun, 27 Oct 2013 05:45:50 GMT Subject: Re: [PATCH] rev-parse --parseopt: add the --sticked-long mode Message-ID: <526CA88E.90802@alum.mit.edu> In-Reply-To: <1382732291-5701-1-git-send-email-boklm@mars-attacks.org> On 10/25/2013 10:18 PM, Nicolas Vigier wrote: > 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/