[Toybox] Allow --help after other arguments?

Ryan Prichard rprichard at google.com
Tue Jun 8 19:11:11 PDT 2021


$ 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")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210608/a09d5eec/attachment.html>


More information about the Toybox mailing list