oras-project / oras

OCI registry client - managing content like artifacts, images, packages
https://oras.land
Apache License 2.0
1.52k stars 181 forks source link

`oras tag -h` shows wrong CLI example #1418

Closed qweeah closed 5 months ago

qweeah commented 5 months ago

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: dcef719e208a9b226b15bc6512ad729a7dd93270 Git tree state: clean

What is your OS environment?

Ubuntu 20.04

Are you willing to submit PRs to fix it?