Replies: 2 comments 8 replies
-
I think those example cases you showed are missing a level. What is labeled as "Explicit subcommand" is the implicit subcommand. What is labeled as "implicit subcommand" is unrelated to this. I'm assuming you meant to show that it errors when you do Internally to clap, it is likely doing everything that you expected as conflicts override requires. You can confirm this by using Most likely, the problem is in the code that The way to resolve this is to keep the field as an #4736 is the discussion for brainstorming how to improve the developer experience for this issue. |
Beta Was this translation helpful? Give feedback.
-
Method 1 works great, see #4755 (reply in thread) for answer |
Beta Was this translation helpful? Give feedback.
-
I worked with the git derive example, however I could not make it work with required parameters. For example changing the
message
parameter of stash subcommand to typeString
:clap/examples/git-derive.rs
Line 97 in c7e929e
Explicit subcommand:
Implicit subcommand:
This is using clap
4.1.8
like so:clap = { version = "4", features = ["derive", "env"] }
Beta Was this translation helpful? Give feedback.
All reactions