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

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.