How to group arguments together so they don't conflict? #5575
Unanswered
0xForerunner
asked this question in
Q&A
Replies: 1 comment
-
We do not support this. Discussion for this is at #3513 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm sure this has been asked before but I'm not really sure what to search to find it.
I have access to some structs that use
#[derive(Parser)]
from an external lib,NodeArgs
andScriptArgs
. These have some conflicting flags so it's not possible to use #[command(flatten)] on them together. I want something like this:mycli --node-args --a something --b somethingelse --script-args --a something3 --c something4
As you can see, the flag --a would belong to whichever item it comes after.
What I have here clearly doesn't work. Is this possible?
I'm open to other ways to solving this problem as well.
Beta Was this translation helpful? Give feedback.
All reactions