Skip to content

feature: use clap derive for nym-api + use stricter validation for other binaries #2772

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

Merged
merged 12 commits into from
Jan 5, 2023

Conversation

jstuczyn
Copy link
Contributor

@jstuczyn jstuczyn commented Jan 4, 2023

Description

Closes: #2757

This pull requests also updates some argument types for other binaries (such as our clients, mixnode, etc) so that clap could perform more validation/parsing at the time of invoking particular command. So say if you attempted to pass something that's not a valid Url for --nym_apis, it should show you an error way sooner. (note, this particular field was previously called --api_validators; it got changed in #2762, but the old name should still be allowed)

Checklist:

  • added a changelog entry to CHANGELOG.md

@jstuczyn jstuczyn merged commit 5f4926d into develop Jan 5, 2023
@jstuczyn jstuczyn deleted the feature/clap-args-cleanup branch January 5, 2023 10:32
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.

Clean-up nym-api startup arguments/flags to use clap 3 and its macro-derived arguments
1 participant