Description of problem: When oc receives unknown command, there is a message mentioning the unknown command, and suggesting the possible commands instead. However in situations where oc cannot find any suggestion, the output received is not human readable, contains redundant “\ characters, missing newlines, and no possible solution Version-Release number of selected component (if applicable): Client Version: 4.10.0-0.nightly-2022-01-25-023600 How reproducible: 100% Actual results: oc blablabla E0125 11:02:33.210573 1050830 run.go:120] "command failed" err="unknown command \"blablabla\" for \"oc\"" Expected results: up to the dev, but should be readable also, we can go clever and suggest 'oc help' if no other suggestions found: oc blablabla E0125 11:02:33.210573 1050830 run.go:120] "command failed" err=< unknown command "blablabla" for "oc" Did you mean this? help >
This was fixed in https://github.com/openshift/oc/pull/1033
well.. #1033 is merged in 4.10.0-0.nightly-2022-01-26-234447 reproducing oc version Client Version: 4.10.0-0.nightly-2022-01-18-044014 oc blablabla E0127 19:18:16.202682 1527787 run.go:120] "command failed" err="unknown command \"blablabla\" for \"oc\"" verifying oc version Client Version: 4.10.0-0.nightly-2022-01-26-234447 oc blablabla error: unknown command "blablabla" for "oc" looks better lgtm