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 arg parsing when providing long short flags #390

Merged
merged 3 commits into from
Feb 28, 2023

Conversation

pballandras
Copy link
Contributor

Updates kingpin to v2.4.1, see its release.

tl;dr

Fixes the use of "long short flags" that exist in some applications like Terraform's -auto-approve.

Before it would read -auto-approve as -a -u -t -o and fail at the middle - because it would find a long flag --approve. Now we catch those cases and handle them.

But wait, there's more

Also adds tests so that we don't eat flags we aren't supposed to

@pballandras pballandras requested review from a team February 28, 2023 09:36
@pballandras pballandras merged commit 101003e into master Feb 28, 2023
@pballandras pballandras deleted the fix/arg-parsing-lib branch February 28, 2023 12:47
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.

3 participants