Bug 1369371 - The flag --only for oc extract should be replaced by --keys from help info
Summary: The flag --only for oc extract should be replaced by --keys from help info
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Juan Vallejo
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-23 08:53 UTC by XiaochuanWang
Modified: 2016-09-19 13:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-19 13:54:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description XiaochuanWang 2016-08-23 08:53:42 UTC
Description of problem:
oc extract help info show the --only as example, but it's actually replaced by --key

Version-Release number of selected component (if applicable):
oc v1.3.0-alpha.3+523a02f

How reproducible:
Always

Steps to Reproduce:
1. check help info # oc extract -h
"...
You can limit which keys are extracted with the --only=NAME flag, or set the directory to extract to
 ..."

2. try to extract secret with --only
# oc extract secret/default-token-2gcbr --only=token --confirm
Error: unknown flag: --only

Actual results:
--only is unknown flag

Expected results:
Should use --keys instead of --only from help info

Additional info:

Comment 1 Juan Vallejo 2016-08-23 19:16:04 UTC
quotaname

Comment 2 Juan Vallejo 2016-08-24 21:47:10 UTC
Related PR: https://github.com/openshift/origin/pull/10614

Comment 3 XiaochuanWang 2016-08-29 02:02:21 UTC
Verified on v1.3.0-alpha.3+4250e53
""" 
You can limit which keys are extracted with the --keys=NAME flag, or set the directory to extract to
with --to=DIRECTORY.
"""


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