Skip to content

Commit 27597fe

Browse files
authored
Add optional (#316)
* Update README.md Add missing [optional] indicators to the "verify-artifact" --help example. Signed-off-by: Wietse Venema <[email protected]> * Add missing [optional] indicators to the verify-artifact help message Signed-off-by: Wietse Venema <[email protected]> Signed-off-by: Wietse Venema <[email protected]>
1 parent e9cd6b7 commit 27597fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ Usage:
7676

7777
Flags:
7878
--build-workflow-input map[] [optional] a workflow input provided by a user at trigger time in the format 'key=value'. (Only for 'workflow_dispatch' events). (default map[])
79-
--builder-id string the unique builder ID who created the provenance
79+
--builder-id string [optional] the unique builder ID who created the provenance
8080
-h, --help help for verify-artifact
81-
--print-provenance print the verified provenance to stdout
81+
--print-provenance [optional] print the verified provenance to stdout
8282
--provenance-path string path to a provenance file
8383
--source-branch string [optional] expected branch the binary was compiled from
8484
--source-tag string [optional] expected tag the binary was compiled from

cli/slsa-verifier/verify/options.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (o *VerifyOptions) AddFlags(cmd *cobra.Command) {
5050
cmd.Flags().Var(&o.BuildWorkflowInputs, "build-workflow-input",
5151
"[optional] a workflow input provided by a user at trigger time in the format 'key=value'. (Only for 'workflow_dispatch' events on GitHub Actions).")
5252

53-
cmd.Flags().StringVar(&o.BuilderID, "builder-id", "", "the unique builder ID who created the provenance")
53+
cmd.Flags().StringVar(&o.BuilderID, "builder-id", "", "[optional] the unique builder ID who created the provenance")
5454

5555
/* Source options */
5656
cmd.Flags().StringVar(&o.SourceURI, "source-uri", "",
@@ -68,7 +68,7 @@ func (o *VerifyOptions) AddFlags(cmd *cobra.Command) {
6868
"path to a provenance file")
6969

7070
cmd.Flags().BoolVar(&o.PrintProvenance, "print-provenance", false,
71-
"print the verified provenance to stdout")
71+
"[optional] print the verified provenance to stdout")
7272

7373
cmd.MarkFlagRequired("source-uri")
7474
cmd.MarkFlagsMutuallyExclusive("source-versioned-tag", "source-tag")

0 commit comments

Comments
 (0)