Support Option<T>
when flattening
#4211
Labels
A-derive
Area: #[derive]` macro API
C-enhancement
Category: Raise on the bar on expectations
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
💸 $20
S-blocked
Status: Blocked on something else such as an RFC or other implementation work.
Milestone
Please complete the following tasks
Clap Version
4.0.0
Describe your use case
When flattening, I'd like to make the struct optional
Describe the solution you'd like
With #3165, we could check if the
ArgGroup
is present and, if it isn't, returnNone
. Otherwise, we walk into theArgGroup
and access it.Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: