[Toybox] Allow --help after other arguments?

Rob Landley rob at landley.net
Wed Jun 9 17:02:39 PDT 2021


On 6/8/21 9:11 PM, Ryan Prichard via Toybox wrote:
> $ ls -l --help
> ls: Unknown option 'help' (see "ls --help")
> 
> I tend to add `--help` to the end of a command line that I'm constructing, so I
> was surprised by toybox's requirement that `--help` be first. Maybe toybox
> should be more accommodating?
> 
> Maybe it'd matter more with an alias, e.g.:
> 
> $ alias ls='ls --color=auto'                                                   
>                                                                 
> $ ls --help
> ls: Unknown option 'help' (see "ls --help")

Hmmm, you've got a point.

Try now?

Rob


More information about the Toybox mailing list