Skip to content

Incorrect description of the --no-tty flag for oras discover #1630

Closed

Description

@Wwwsylvia

What happened in your environment?

The description of the --no-tty flag for the oras discover command in the help docs is "do not show progress output", which is not appropriate, because oras discover does not have status output anyway.

Image

What did you expect to happen?

The description could be something like "disable terminal-specific output"?

How can we reproduce it?

oras discover -h

What is the version of your ORAS CLI?

Version:        1.3.0-beta.1
Go version:     go1.23.4
OS/Arch:        linux/amd64
Git commit:     2ca02f6f6514200366df26ba9ef6d1b311629dad
Git tree state: clean

What is your OS environment?

Ubuntu 24.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    documentation
    on Feb 24, 2025
  2. added this to the v1.3.0-beta.3 milestone on Mar 18, 2025
  3. removed
    good first issue
    on Apr 17, 2025
  4. wangxiaoxuan273 commented on Apr 18, 2025

    @wangxiaoxuan273
    Contributor

    The no-tty flag has three behaviors for oras commands: turn off progress bars (for cp), turn off colors (for discover) and no effect (for repo ls). We need to move the flag out from option.Common and move it to each command to give different descriptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions