Skip to content

improve error message when pushing with invalid annotation flags #1215

Closed

Description

@qweeah

Current behavior and output:

$ oras push --annotation "key:value" ghcr.io/library/alpine:3.9
Error: missing key in `--annotation` flag: key:value

Suggested error message:

$ oras push --annotation "key:value" ghcr.io/library/alpine:3.9
Error: annotation value doesn't match the required format.
Try --annotation "key=value"  

Activity

  1. added
    ux
    on Dec 26, 2023
  2. added this to the v1.2.0 milestone on Dec 26, 2023
  3. wangxiaoxuan273 commented on Jan 16, 2024

    @wangxiaoxuan273
    Contributor

    I'd like to work on this issue.

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

Metadata

Metadata

Labels

ux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions