Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help message is not properly rendered for oras attach #1225

Closed
1 task
shizhMSFT opened this issue Jan 3, 2024 · 1 comment · Fixed by #1229
Closed
1 task

Help message is not properly rendered for oras attach #1225

shizhMSFT opened this issue Jan 3, 2024 · 1 comment · Fixed by #1229
Assignees
Labels
bug Something isn't working triage New issues or PRs to be acknowledged by maintainers

Comments

@shizhMSFT
Copy link
Contributor

shizhMSFT commented Jan 3, 2024

What happened in your environment?

$ oras attach --help
...
Flags:
...
      --distribution-spec string                   [Preview] set OCI distribution spec version and API option for target. Options: %!(EXTRA string=v1.1-referrers-tag, v1.1-referrers-api)
...

Options is not rendered correctly.

What did you expect to happen?

It should be corrected as

Options: v1.1-referrers-tag, v1.1-referrers-api

How can we reproduce it?

Run oras attach --help

What is the version of your ORAS CLI?

Version: 1.1.0+unreleased
Go version: go1.21.0
Git commit: 564bd32
Git tree state: clean

What is your OS environment?

Ubuntu 22.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.
@shizhMSFT shizhMSFT added bug Something isn't working triage New issues or PRs to be acknowledged by maintainers labels Jan 3, 2024
@FeynmanZhou
Copy link
Member

It is renderer correctly on my Ubuntu machine.

 --distribution-spec string                   [Preview] set OCI distribution spec version and API option for target. options: v1.1-referrers-api, v1.1-referrers-tag

My ORAS version:

$ oras version
Version:        1.2.0-format
Go version:     go1.21.0
Git commit:     7728d49458b06843f9d056da405971b352f4a683
Git tree state: clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues or PRs to be acknowledged by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants