Closed jrfondren closed 2 years ago
A good alternative is to use the Double-Dash parameter in the shell. It "[...] signals the end of options and disables further option processing". [1]
$ ./help.rs -- --help
???
$ ./help.rs -- -V
-V
[1] https://www.baeldung.com/linux/double-dash-in-shell-commands
This is a bad alternative for a script that's supposed to have its own CLI interface and its own flags. And people can't even get the message that they need a workaround because the natural "how do I use this" command only tells them about rust-script.
@jrfondren Thanks a lot for reporting! This should be fixed in the just released version 0.18.0.
Consider: