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

feat(derive): Reserve behavior needed for implicit ArgGroups #4209

Merged
merged 3 commits into from
Sep 13, 2022

Conversation

epage
Copy link
Member

@epage epage commented Sep 13, 2022

These are the building blocks for us to automatically create an ArgGroup when deriving Args on a struct. This will make it easier to compose (write validation rules) particularly when the struct comes from a third party.

The next step will then be to support deriving Args on enums, see #2621

Since the `name` is changed to be the package name, we can't use it as
(1) its not as predictable and (2) it can lead to conflicts if a
`Parser` is flattened into a `Parser`
@epage epage merged commit d2503a4 into clap-rs:master Sep 13, 2022
@epage epage deleted the prep branch September 13, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant