Description of problem: Flags --v/--loglevel duplicate Version-Release number of selected component (if applicable): v3.10.0-0.15.0 How reproducible: Steps to Reproduce: Flags --v/--loglevel duplicate: 1. `oc [adm] options` 2. `oc adm diagnostics -h` and all `diagnostics` sub commands Actual results: 1. --v and --loglevel displayed in separate lines 2. --v/--loglevel are global options, but displayed in help info of sub commands Expected results: 1. Remove one of --v and --loglevel, or display them in same line 2. Global options are not duplicate displayed in sub commands help info Additional info:
Maciej, was it intended behavior to display --v in subcommands?
Yes, this is intentional. We'll be slowly replacing --loglevel with --v to be compliant with kubernetes which uses the latter.
(In reply to Xingxing Xia from comment #0) > Actual results: > 2. --v/--loglevel are global options, but displayed in help info of sub > commands > Expected results: > 2. Global options are not duplicate displayed in sub commands help info Thanks for clarification. But the duplication in point 2 should be fixed.
We will not remove any of the two entries until one of them (loglevel) will be deprecated.
Hmm, fyi, the point 2 issue is in fact fixed in oc v3.10.0-0.27.0, subcommands does not dipslay global --v/--loglevel now in help info. Thanks