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

Deprecate runtime usage parser #3086

Closed
epage opened this issue Dec 8, 2021 · 3 comments
Closed

Deprecate runtime usage parser #3086

epage opened this issue Dec 8, 2021 · 3 comments
Milestone

Comments

@epage
Copy link
Member

epage commented Dec 8, 2021

The runtime usage parser adds extra code (complexity / compile time), defers errors to runtime, and the syntax is driven by the parser implementation, leading to some odd behavior.

We should replace it with a subset of the clap_app macro so users still get a usage parser but the cost is opt-in and errors are at compile time.

@epage epage added this to the 3.0 milestone Dec 8, 2021
@epage
Copy link
Member Author

epage commented Dec 8, 2021

Deprecated in 3c3a0b7

@epage epage closed this as completed Dec 8, 2021
@epage
Copy link
Member Author

epage commented Dec 8, 2021

If users want to fork this into its own crate to support it, some relevant commits

@epage
Copy link
Member Author

epage commented Dec 8, 2021

For an example of porting from Arg::from_usage to arg!, see 4c4a2b8

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

No branches or pull requests

1 participant