Bug 1368065 - "-c CONTAINER" should be options in usage of "oc attach -h"
Summary: "-c CONTAINER" should be options in usage of "oc attach -h"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-18 09:39 UTC by Weihua Meng
Modified: 2019-08-21 09:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-21 09:07:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Weihua Meng 2016-08-18 09:39:09 UTC
Description of problem:
"-c CONTAINER" is not necessary for "oc attach"

Version-Release number of selected component (if applicable):
openshift v3.3.0.22

How reproducible:
Always

Steps to Reproduce:
1. # oc attach -h

Actual results:
1. # oc attach -h
<snip>
Usage:
  oc attach POD -c CONTAINER [options]
<snip>

Expected results:
Usage:
  oc attach POD [options]
or
  oc attach POD [-c CONTAINER] [options]

Additional info:
# oc rsh -h
Usage:
  oc rsh [options] POD [COMMAND]
Options:
  -c, --container='': Container name; defaults to first container

# oc exec -h
Usage:
  oc exec [options] POD [-c CONTAINER] -- COMMAND [args...]
Options:
  -c, --container='': Container name. If omitted, the first container in the pod will be chosen

Comment 1 Weihua Meng 2018-04-25 09:25:36 UTC
any update?

Comment 2 Maciej Szulik 2019-08-21 09:07:48 UTC
This is already fixed.


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