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
OCM-6646 | fix: detect presence of --help processing args #1839
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: thomasmckay The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1839 +/- ##
==========================================
- Coverage 21.30% 21.30% -0.01%
==========================================
Files 91 93 +2
Lines 15621 15753 +132
==========================================
+ Hits 3328 3356 +28
- Misses 12052 12157 +105
+ Partials 241 240 -1 ☔ View full report in Codecov by Sentry. |
LGTM, |
@thomasmckay can you ensure the ticket meets the JIRA definition of ready - https://docs.google.com/document/d/1UxSahjnmt4Ovj9y2hxcJt082j8KvJLC7CTfLKSs4HMA/edit#bookmark=id.rgd3xpx7hk0c |
foundId := false | ||
for i, arg := range argv { | ||
switch { | ||
// If help is called, regardless of other flags, return we want help. | ||
// Also say we need help if the command isn't runnable. | ||
case arg == "--help": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomasmckay Could you please update arguments_test.go
with a unit test for this.
cheers,
Rob
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated tests, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomasmckay I don't see the update tests file in the commits for this PR?
it does work for this case |
added priority and story points to jira |
@thomasmckay: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@thomasmckay just bumping this, can you commit the tests so we can merge this 🙏 |
@thomasmckay another bump on this one 🙏 |
No description provided.