UPSTREAM: 35206 update default run func for cmds containing sub-commands#11362
Conversation
|
[test] |
|
Isn't usage error usually |
From a few cases I've seen, UsageErrors have been returning
These are the only constants I've found in Cobra |
85cdd34 to
9eca98c
Compare
|
conformance flaked on #11114 re[test] |
0b0f5f2 to
390f3a1
Compare
|
No need for the upstream commits to be separate. Have you opened a PR in Kube already? |
390f3a1 to
24d51bf
Compare
|
5bd7640 to
cf5bc95
Compare
|
networking test flaked on #11567 re[test] |
cf5bc95 to
57cde07
Compare
|
Can you update the commit name of the UPSTREAM commit with the real PR # |
This patch updates parent commands of sub-commands to exit with a usage error and exit code 1 on an invalid (non-sub-command) argument. It also upstreams the DefaultSubCommandRun util.
This patch updates parent commands of sub-commands to exit with a usage error and exit code 1 on an invalid (non-sub-command) argument. It also upstreams the DefaultSubCommandRun util.
57cde07 to
e88bf66
Compare
Done! |
|
Evaluated for origin test up to e88bf66 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11068/) (Base Commit: 3b6c372) |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11068/) (Image: devenv-rhel7_5309) |
|
Evaluated for origin merge up to e88bf66 |
UPSTREAM: kubernetes/kubernetes#35206
Fixes #11043 (comment)
This patch updates parent commands of sub-commands to exit with a usage
error and exit code 1 on an invalid (non-sub-command) argument.
Example
cc @openshift/cli-review @Kargakis @tnozicka