[Toybox] [Patch] - long options with '-' separator

Rob Landley rob at landley.net
Wed Mar 19 12:10:39 PDT 2014


On 03/19/14 05:00, Ashwini Sharma wrote:
> Hi Rob, List,
> 
> There are cases when the long options are of the format
> abc-def. In current implementation FLAG_xxx macros are generated for
> long options too. with __-__ sign in the macro, it will generate errors.

Oops. Yeah, that's a bug.

> I am of the opinion that __-__ be converted to '_' for generating the
> FLAG_xxx macros and be used in the command.

Makes sense. Applied.

(I note that only "bare longopts", with no corresponding short flag, get
flag macros generated for them. I should update the documentation to
mention this.)

Thanks,

Rob

 1395256239.0


More information about the Toybox mailing list