-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
mergePersistentFlags in Traverse #616
Conversation
I think this is also wrong. @dnephin probably needs to come in an look at things. It appears we re-wrote (broken) flag parsing code in https://github.com/wxio/cobra/tree/pr615test/tests |
This fix is correct. The related logic for non-traversal is Lines 459 to 463 in 0c34d16
Traversal uses similar logic to I'll open a PR to share more of the logic between |
Ok, I'm on board that this fixes one of the bugs in Traverse. I am good either way If we want to merge this and then iterate on more fixes in another PR, or if @dnephin wants to try to do it all in one shot in another PR. |
I'd like to get #617 merged so there is a test for this fix as well. I can open an issue for the other problem. |
@eparis is this still worth merging? |
This PR is being marked as stale due to a long period of inactivity |
@jharshman Seems like we can close this PR in favor of #617 since that PR also contains @wxio's commit. |
@wfernandes agreed |
more elegant fix than #615