Skip to content

improve error message when user mistakenly uses tag list command #1210

Closed

Description

@qweeah

Current behavior and output:

$ oras tag list ghcr.io/oras-project/oras
Error: unable to add tag for 'list': invalid reference: missing repository

Suggested error message:

$ oras tag list ghcr.io/oras-project/oras
Error: There is no "list" sub-command for "oras tag" command
Usage: oras tag [flags] <name>{:<tag>|@<digest>} <new_tag> [...]
If you want to list available tags in a repository, use "oras repo tags" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ux

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions