<div dir="ltr"><div>It seems to have broken --help when invoking toybox explicitly:</div><div><br></div><div>$ ./toybox ls --help<br></div><div><shows same output as "./toybox --help" rather than the "toybox ls" usage.></div><div><br></div><div>Are we concerned about interpreting "data" arguments as the --help flag? e.g.:<br></div><div><br></div><div>$ ./rm -- --help<br></div><div><prints usage rather than remove the file named "--help"></div><div><br></div><div>$ ./tar -c README > --help && tar -tvf --help<br>-rw-r----- rprichard/primarygroup 6306 2021-06-08 19:10 README<br></div><div><br></div><div><div>$ ./tar -c README > --help && ./tar -tvf --help<br><prints "toybox tar" usage with the new --help behavior. previously toybox behaved like GNU tar above.></div><div><br></div></div></div><div dir="ltr"><div dir="ltr"><div>On Wed, Jun 9, 2021 at 4:46 PM Rob Landley <<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/8/21 9:11 PM, Ryan Prichard via Toybox wrote:<br>
> $ ls -l --help<br>
> ls: Unknown option 'help' (see "ls --help")<br>
> <br>
> I tend to add `--help` to the end of a command line that I'm constructing, so I<br>
> was surprised by toybox's requirement that `--help` be first. Maybe toybox<br>
> should be more accommodating?<br>
> <br>
> Maybe it'd matter more with an alias, e.g.:<br>
> <br>
> $ alias ls='ls --color=auto'                                                   <br>
>                                                                 <br>
> $ ls --help<br>
> ls: Unknown option 'help' (see "ls --help")<br>
<br>
Hmmm, you've got a point.<br>
<br>
Try now?<br></blockquote><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div></div>