Skip to content

oras tag -h shows wrong CLI example #1418

@qweeah

Description

@qweeah

What happened in your environment?

I run oras tag -h and it shows wrong CLI example for tagging a manifest in an OCI image layout

> oras tag -h
Tag a manifest in a registry or an OCI image layout
...
Example - Tag the manifest 'v1.0.1' to 'v1.0.2' in an OCI image layout folder 'layout-dir':
  oras tag layout-dir:v1.0.1 v1.0.2
...

What did you expect to happen?

The example should be

Example - Tag the manifest 'v1.0.1' to 'v1.0.2' in an OCI image layout folder 'layout-dir':
  oras tag --oci-layout layout-dir:v1.0.1 v1.0.2

How can we reproduce it?

oras tag -h

What is the version of your ORAS CLI?

Version: 1.2.0
Go version: go1.22.3
Git commit: dcef719
Git tree state: clean

What is your OS environment?

Ubuntu 20.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions