Closed wangxiaoxuan273 closed 2 months ago
@wangxiaoxuan273 Can you note down the current error message in this issue?
Current error message: Error: if any flags in the group [password identity-token identity-token-stdin password-stdin] are set none of the others can be; [identity-token password] were all set
Also need to improve MarkFlagsRequiredTogether as it's used by mTLS flag parsing.
The returned error should be compliant to the error guideline proposed in https://github.com/oras-project/oras/pull/1163
After #1294 is completed,
cmd.MarkFlagsMutuallyExclusive
is used to prevent--identity-token
/--identity-token-stdin
to be used with--username
/--password
/--password-stdin
. However, the default error message is confusing for the users. We need to improve the error messages.