Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose #[derive(Args)] as an ArgGroup #4210

Closed
2 tasks done
Tracked by #3165
epage opened this issue Sep 13, 2022 · 1 comment
Closed
2 tasks done
Tracked by #3165

Expose #[derive(Args)] as an ArgGroup #4210

epage opened this issue Sep 13, 2022 · 1 comment
Labels
A-derive Area: #[derive]` macro API C-enhancement Category: Raise on the bar on expectations E-medium Call for participation: Experience needed to fix: Medium / intermediate 💸 $20

Comments

@epage
Copy link
Member

epage commented Sep 13, 2022

Please complete the following tasks

Clap Version

4.0.0

Describe your use case

When I flatten an struct, I'd like to be able to refer to all members of that struct for relations between arguments

Describe the solution you'd like

Implicitly create an ArgGroup with the type's name that contains all of the struct members, including the group from a flattened field

Alternatives, if applicable

No response

Additional Context

This lays the ground work for #2621

@epage epage added C-enhancement Category: Raise on the bar on expectations E-medium Call for participation: Experience needed to fix: Medium / intermediate A-derive Area: #[derive]` macro API 💸 $20 labels Sep 13, 2022
@epage
Copy link
Member Author

epage commented Sep 13, 2022

Looks like I already did this: #3165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-derive Area: #[derive]` macro API C-enhancement Category: Raise on the bar on expectations E-medium Call for participation: Experience needed to fix: Medium / intermediate 💸 $20
Projects
None yet
Development

No branches or pull requests

1 participant