[Toybox] echo --help

Rob Landley rob at landley.net
Thu Oct 30 12:13:54 PDT 2025


On 10/8/25 15:11, Rob Landley wrote:
> Alright, --help and --version should take effect when they are the first 
> and ONLY argument to a command, except for toybox --help command which 
> is an existing special case. And NOHELP suppresses that first argument 
> because "true" should still never produce output (or error on stdout 
> refusing to accept data).

Nope, --help is interpreted when longopts are interpreted because 
otherwise "alias ls='ls -l'" would disable --help.

And if "echo -e" produces nothing, then "echo --help" producing 
weirdness is ok.

> P.S. It's pre-release polishing, the traditional time to give the todo 
> list a quick scrub to see what comes out.

Still had a todo item about this, sometimes the stack pops LIFO...

Rob


More information about the Toybox mailing list