Closed amcinnes closed 7 years ago
I think this is default behaviour - looking for options anywhere in the command-line - of the option-parsing library we use, urfave/cli.
I agree it's surprising, and annoying, for a "command shim" tool like shush
. Hopefully there's a way to disable that behaviour. If not, we could switch to ogier/pflag, which I know can be configure to work how we want.
Ironically, my Ruby command-line parsing library, clamp, has an open issue requesting support for the behaviour we don't want here :-)
When I do this:
I get
I would expect shush to know that any command-line options passed after the command belong to the command and not to shush itself.
i.e. I would expect
shush exec ls -la
to do the same asshush exec -- ls -la