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

Use clap ValueParser for command-line configuration parsing #2211

Merged
merged 8 commits into from
Jun 30, 2024

Conversation

neunenak
Copy link
Contributor

Some of the configuration currently done with explicit function calls could be done more concisely with clap ValueParser

@neunenak neunenak marked this pull request as ready for review June 30, 2024 09:15
@casey
Copy link
Owner

casey commented Jun 30, 2024

LGTM!

@casey casey enabled auto-merge (squash) June 30, 2024 19:14
@casey casey disabled auto-merge June 30, 2024 19:14
@casey casey enabled auto-merge (squash) June 30, 2024 19:15
@casey casey merged commit 208187f into casey:master Jun 30, 2024
5 checks passed
@casey
Copy link
Owner

casey commented Jun 30, 2024

I also converted CommandColor into a ValueEnum that can then be converted to an ansi_term::Color, since that seems less error prone.

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.

2 participants