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 --uppercase=false not working #48

Closed
wants to merge 1 commit into from

Conversation

paul-hansen
Copy link

Closes #16
Fixes the value of the uppercase option always being true. This was due to the design of claps boolean flags which is discussed here: clap-rs/clap#1649 (comment)
This PR uses the solution mentioned in the linked comment from that thread.

Using require_equals and default_missing_value allows sleek --uppercase "queries/*sql" to still work without trying to parse the path as the uppercase boolean, reducing breakage.

Use --uppercase=false to disable uppercase, NOT --uppercase false.

Closes nrempel#16
Fixes the value of the uppercase option always being true.
This was due to the design of claps boolean flags which is
discussed here:
clap-rs/clap#1649 (comment)
This PR uses the solution mentioned in the linked comment from
that thread.

Using `require_equals` and `default_missing_value` allows
`sleek --uppercase "queries/*sql"` to still work without
trying to parse the path as the uppercase boolean, reducing
breakage.

Use `--uppercase=false` to disable uppercase, NOT `--uppercase false`.
@paul-hansen
Copy link
Author

Somehow I missed that #17 already exists. That would be an acceptable solution as well. It's slightly different though so I'll leave this open for now. Feel free to close this if you decide to go with the other PR.

@nrempel
Copy link
Owner

nrempel commented Feb 24, 2024

thank you!

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.

--uppercase false does not work
2 participants