Skip to content

improve error message of when a set of flags is required to use together #1357

Closed

Description

@qweeah

I am using ORAS built from 2edebad and trying to mTLS to a registry running at localhost:5000.

If only a cert file is provided without key, I will get error like:

> oras login localhost:5000 --cert-file test   
Error: if any flags in the group [cert-file key-file] are set they must all be set; missing [key-file]

The error message is hard to read since it does not explicitly tells what should be done to user, suggest to change it to:

> oras login localhost:5000 --cert-file test   
Error: --key-file is required but not provided

Activity

  1. added
    ux
    triage
    on Apr 18, 2024
  2. added this to the v1.2.0-rc.1 milestone on Apr 18, 2024
  3. wangxiaoxuan273 commented on Apr 18, 2024

    @wangxiaoxuan273
    Contributor

    I'd like to work on this item

  4. removed
    triage
    on Apr 23, 2024
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