| Summary: | Flags N/A for oc commands are shown in help info e.g. `oc extract -h` shows -o, --show-labels etc | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | XiaochuanWang <xiaocwan> |
| Component: | oc | Assignee: | Clayton Coleman <ccoleman> |
| Status: | CLOSED EOL | QA Contact: | Xingxing Xia <xxia> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | aos-bugs, jokerman, maszulik, mmccomas |
| Target Milestone: | --- | Keywords: | Reopened |
| 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: | 2020-02-26 19:09:36 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-22 10:02:40 UTC
Same flag also doesn't work for configmap # oc create configmap myconfig --from-file=/openshift.local.config/master/master-config.yaml # oc extract configmap/myconfig --confirm -o json master-config.yaml # oc extract configmap/myconfig --confirm -o yaml master-config.yaml # oc extract configmap/myconfig --confirm -o name master-config.yaml # oc extract configmap/myconfig --confirm -o wide master-config.yaml From `oc edit configmap myconfig` the format of "data" is yaml This is working as designed. Extract retrieves file contents, which can't be converted from types. Thx, sounds good. Now that the flags (-o, --show-labels etc.) are N/A (not applicable) for oc extract, it is better to not show them in `oc extract -h`. Other sub-commands' help info may have similar issue of N/A flags |