Skip to content

Help message is not properly rendered for oras attach #1225

Closed

Description

@shizhMSFT

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.

Activity

  1. added
    bug
    triage
    on Jan 3, 2024
  2. FeynmanZhou commented on Jan 3, 2024

    @FeynmanZhou
    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
    
  3. self-assigned this
    on Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugtriage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions