Skip to content

improve error message when pushing with invalid annotation flags #1215

@qweeah

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"  

Metadata

Metadata

Labels

uxUser experience related

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions