-
Notifications
You must be signed in to change notification settings - Fork 2
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
Move to clap derive #15
Conversation
hey man, thanks for this - would you mind addressing the conflicts? was based on stable but should be unstable |
…e-to-clap-derive
…anchor into migrate-to-clap-derive
sorry about that, conflicts should be resolved now |
…anchor into migrate-to-clap-derive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah this is cool!
Thanks @eserilev!
anchor/client/src/config.rs
Outdated
// TODO define secrets_dir flag | ||
// if cli_args.secrets_dir.is_some() { | ||
// secrets_dir = cli_args.secrets_dir; | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to add this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yep, its now added
Move from clap builder to clap derive. Clap derive is a bit nicer to use because you can define the flag types alongside the flag definitions. This removes the need to use the cli helpers
parse_optional
andparse_required
.