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

Modify flags when needed to accommodate pflag #1534

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

RebeccaMahany
Copy link
Contributor

pflag, while mostly great for our usecase in the tuf package, expects getopt-style flags, which means it doesn't support the Golang standard of using single and double dashes interchangeably for flags. (e.g., pflag cannot parse -config, but Golang treats -config the same as --config.)

This PR transforms all single-dash args to double-dashes so that pflag can parse them as expected.

@RebeccaMahany RebeccaMahany added this pull request to the merge queue Jan 8, 2024
Merged via the queue into kolide:main with commit 27e6aca Jan 8, 2024
27 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/pflag-consistency branch January 8, 2024 21:18
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