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

chore: add errcheck for parsing cli flags #245

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

thevilledev
Copy link
Contributor

@thevilledev thevilledev commented Jul 19, 2023

Overview

Add missing error check to main() for parsing CLI flags. If flags.Parse() fails now the error is hidden from the user.

Design of Change

An error check was missing and I added it 👍

Related Issues/Pull Requests

Originally noticed at hashicorp/vault-plugin-auth-kubernetes#202

Contributor Checklist

[-] Add relevant docs to upstream Vault repository, or sufficient reasoning why docs won’t be added yet
Not needed

[-] Add output for any tests not ran in CI to the PR description (eg, acceptance tests)
Not needed

[x] Backwards compatible

Copy link
Member

@austingebauer austingebauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@austingebauer austingebauer merged commit e5f0241 into hashicorp:main Jan 2, 2024
2 checks passed
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.

None yet

2 participants