Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cobra prints usage on errors #874

Closed
mattmoor opened this issue Oct 11, 2021 · 0 comments · Fixed by #878
Closed

cobra prints usage on errors #874

mattmoor opened this issue Oct 11, 2021 · 0 comments · Fixed by #878
Labels
bug Something isn't working

Comments

@mattmoor
Copy link
Member

Description

After the switch to cobra, we get the usage displayed when a command errors, e.g.

COSIGN_EXPERIMENTAL=true cosign verify ghcr.io/mattmoor/public@sha256:720702b8ffe0a0ea9925db4b3b0a29d1a3d9f669592f3497ffda5091e226523d
No TUF root installed, using embedded CA certificate.
Error: no matching signatures:

Usage:
  cosign verify [flags]

Examples:
  cosign verify --key <key path>|<key url>|<kms uri> <image uri> [<image uri> ...]

  # verify cosign claims and signing certificates on the image
  cosign verify <IMAGE>
...

cc @dekkagaijin @n3wscott (we may want to fix this before 1.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant