Bug 1390528 - Wrong help info for `oc set` sub-command about global options
Summary: Wrong help info for `oc set` sub-command about global options
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-01 10:11 UTC by Xingxing Xia
Modified: 2016-12-09 21:52 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1313198
Environment:
Last Closed: 2016-12-09 21:52:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Xingxing Xia 2016-11-01 10:14:53 UTC
Try:
for i in env resources volumes probe deployment-hook image build-secret triggers build-hook route-backends
do
  echo "oc set $i -h"
  oc set $i -h | grep -o "Use \"oc set $i options\" for a list of global"
done

Will see: all sub-commands (including 'triggers') of oc set give wrong info:

oc set env -h
Use "oc set env options" for a list of global
oc set resources -h
Use "oc set resources options" for a list of global
oc set volumes -h
Use "oc set volumes options" for a list of global
oc set probe -h
Use "oc set probe options" for a list of global
oc set deployment-hook -h
Use "oc set deployment-hook options" for a list of global
oc set image -h
Use "oc set image options" for a list of global
oc set build-secret -h
Use "oc set build-secret options" for a list of global
oc set triggers -h
Use "oc set triggers options" for a list of global
oc set build-hook -h
Use "oc set build-hook options" for a list of global
oc set route-backends -h
Use "oc set route-backends options" for a list of global

Shoud be: Use "oc options" for a list of global ...

Comment 2 Xingxing Xia 2016-11-01 10:16:07 UTC
Version-Release number of selected component (if applicable):
oc v1.4.0-alpha.0+f69b28e-909

Comment 3 Fabiano Franz 2016-11-01 17:31:35 UTC
Fixed in https://github.com/openshift/origin/pull/11703

Comment 4 Xingxing Xia 2016-11-02 04:59:14 UTC
With oc/openshift v1.4.0-alpha.0+90d8c62-1000, checked all `oc set sub-commands -h` and `openshift cli set -h`, the former shows 'Use "oc options" for a list of global ...', the latter shows 'Use "openshift cli options" for a list of global ...'


Note You need to log in before you can comment on or make changes to this bug.