[Toybox] About supporting long(--) option

Rob Landley rob at landley.net
Sat Jun 22 13:14:15 PDT 2013


On 04/29/2013 01:17:46 AM, Kyungwan Han wrote:
> Hello all,
> 
> I have a question about treating long(--) option in toybox.
> 
> There are two style options - short(-) and long(--) - in linux system.
> (
> http://unix.stackexchange.com/questions/21852/single-dashes-for-single-character-options-but-double-dashes-for-words
> )
> 
> I know toybox supports only short option, so toybox cannot treat  
> '--help'
> option.
> 
> Is there special reason for not supporting long option?

I just upgraded scripts/make.sh to generate FLAG_longoptname macros for  
the ones that haven't got a short option.

I'm now doing some bug checking (and adding test suite entries) to make  
sure the other aspects of them work (attaching strings to them and  
such). Also, --longopt=abc should work and doesn't seem to...

Working on it, but there was a storm in minnesota that knocked out  
power, so wireless is down and I've got half an hour of laptop battery  
left. Dunno how much I'll get done today...

Rob
 1371932055.0


More information about the Toybox mailing list