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

fix: Update app_from_crate for App rename #3474

Merged
merged 2 commits into from Feb 15, 2022
Merged

Conversation

epage
Copy link
Member

@epage epage commented Feb 15, 2022

This is a follow up to #3472 and is part of resolving #3089.

Instead of just renaming it, I reconsidered what the API should look
like. A custom separator for author does not make sense positionally
but accepting a name, and defaulting it, does fit with what someone
would expect.

I removed the _from_crate suffix because it doesn't seem necessary.
We don't have this kind of naming for the derive. I feel it cleans
things up this way.

Instead of just renaming it, I reconsidered what the API should look
like.  A custom separator for author does not make sense positionally
but accepting a name, and defaulting it, does fit with what someone
would expect.

I removed the `_from_crate` suffix because it doesn't seem necessary.
We don't have this kind of naming for the derive.  I feel it cleans
things up this way.
@epage epage force-pushed the app_from_crate branch 2 times, most recently from 4eb269e to 360c4d6 Compare February 15, 2022 14:58
@epage epage merged commit 51ba54d into clap-rs:master Feb 15, 2022
@epage epage deleted the app_from_crate branch February 15, 2022 15:33
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.

None yet

1 participant