I’m building a utility which basically wraps some other commad, like
time ls -lah. So the usage would be
my_util [my_util_flags] cmd [cmd_flags]. I would like to use an awesome
clap for argument parsing, but can’t find a way to treat all that follows the
cmd as positional arguments.
That is, the following works:
> my_util ls foo bar baz
> my_util ls -- -l
But this does not work:
> my_util ls -l error: The argument '-l' isn't valid
How can I treat everything, which follow the first positional argument, as additional arguments?