In `clap_derive` (`clap` v3), how to force positional arguments to be placed after `--` only (before `--` is forbidden or a different value)

In short, I want this command to be valid:

my-program --flag1 --flag2 -- positional1 postional2

But not this one:

my-program --flag1 --flag2 positonal1 positional2

If possible, I want both of the above to be valid but the meanings different (the positional arguments go to different Vecs).

Is this what you're looking for?

1 Like