Bug 1798958 - The `oc adm catalog build` help info is wrong
Summary: The `oc adm catalog build` help info is wrong
Keywords:
Status: CLOSED DUPLICATE of bug 1798961
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.4.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-06 12:02 UTC by Jian Zhang
Modified: 2020-02-11 08:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-11 08:50:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jian Zhang 2020-02-06 12:02:33 UTC
Description of problem:
The example of `oc adm catalog build` wrong:
Examples:
  # Build an operator catalog from an appregistry repo and store in a file
  oc adm catalog mirror --appregistry-org=redhat-operators --to=file://offline/redhat-operators:4.3

Version-Release number of selected component (if applicable):
[jzhang@dhcp-140-36 ~]$ oc version
Client Version: 4.4.0-0.nightly-2020-02-04-032141

How reproducible:
always

Steps to Reproduce:
1. Check the `oc adm catalog build` help info.

Actual results:
It displays the `oc adm catalog mirror`. 
[jzhang@dhcp-140-36 ~]$ oc adm catalog build --help
Builds a catalog container image from a collection operator manifests.

 Extracts the contents of a collection of operator manifests to disk, and builds them into an operator registry catalog
image.

Usage:
  oc adm catalog build [flags]

Examples:
  # Build an operator catalog from an appregistry repo and store in a file
  oc adm catalog mirror --appregistry-org=redhat-operators --to=file://offline/redhat-operators:4.3
  
  # Build an operator catalog from an appregistry repo and mirror to a registry
  oc adm catalog mirror --appregistry-org=redhat-operators --to=quay.io/my/redhat-operators:4.3


Expected results:
The output `oc adm catalog mirror` should be `oc adm catalog build`.

Additional info:

Comment 1 Maciej Szulik 2020-02-11 08:50:29 UTC

*** This bug has been marked as a duplicate of bug 1798961 ***


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