Skip to content

Commit f012234

Browse files
committed
fix flag name in SetAnnotation
1 parent 3943fef commit f012234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cosign/cli/options/certificate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (o *CertVerifyOptions) AddFlags(cmd *cobra.Command) {
7979
cmd.Flags().StringVar(&o.CARoots, "ca-roots", "",
8080
"path to a bundle file of CA certificates in PEM format which will be needed "+
8181
"when building the certificate chains for the signing certificate. Conflicts with --certificate-chain.")
82-
_ = cmd.Flags().SetAnnotation("certificate-bundle", cobra.BashCompFilenameExt, []string{"cert"})
82+
_ = cmd.Flags().SetAnnotation("ca-roots", cobra.BashCompFilenameExt, []string{"cert"})
8383

8484
cmd.Flags().StringVar(&o.CertChain, "certificate-chain", "",
8585
"path to a list of CA certificates in PEM format which will be needed "+

0 commit comments

Comments
 (0)