cli help about default options

Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
Ramon Petgrave
2024-06-25 15:32:17 +00:00
parent 92ce34e767
commit f9a4b35ff6
2 changed files with 2 additions and 2 deletions

View File

@@ -506,7 +506,7 @@ Flags:
-h, --help help for verify-vsa
--print-attestation [optional] print the verified attestations to stdout
--public-key-hash-algo string [optional] the hash algorithm used to hash the public key, one of SHA256 [efault], SHA384, or SHA512 (default "SHA256")
--public-key-id string [optional] the ID of the public key
--public-key-id string [optional] the ID of the public key, defaults to the SHA256 digest of the base64-encoded public key
--public-key-path string path to a public key file
--resource-uri string the resource URI to be verified
--subject-digest stringArray the digests to be verified. Pass multiple digests by repeating the flag. e.g. <digest type>:<digest value>

View File

@@ -166,7 +166,7 @@ func (o *VerifyVSAOptions) AddFlags(cmd *cobra.Command) {
"path to a public key file")
cmd.Flags().StringVar(&o.PublicKeyID, "public-key-id", "",
"[optional] the ID of the public key")
"[optional] the ID of the public key, defaults to the SHA256 digest of the base64-encoded public key")
cmd.Flags().StringVar(&o.PublicKeyHashAlgo, "public-key-hash-algo", "SHA256",
"[optional] the hash algorithm used to hash the public key, one of SHA256 [efault], SHA384, or SHA512")