Bug 1369371

Summary: The flag --only for oc extract should be replaced by --keys from help info
Product: OKD Reporter: XiaochuanWang <xiaocwan>
Component: ocAssignee: Juan Vallejo <jvallejo>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jvallejo, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-19 13:54:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.
"""