Skip to content

Commit be5b015

Browse files
committed
Enhance help message
One part that is missing in the output if invocation is wrong is that there is no indication that user has to pass path to a file (artifact/image). The remaining potential errors from slsa-framework#173 are handled via slsa-framework#231. Found while looking at slsa-framework#174. Signed-off-by: Mihai Maruseac <[email protected]>
1 parent 82cb42f commit be5b015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/slsa-verifier/verify.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func verifyArtifactCmd() *cobra.Command {
3232
o := &verify.VerifyOptions{}
3333

3434
cmd := &cobra.Command{
35-
Use: "verify-artifact",
35+
Use: "verify-artifact [flags] artifact",
3636
Args: func(cmd *cobra.Command, args []string) error {
3737
if len(args) != 1 {
3838
return errors.New("expects a single path to an artifact")
@@ -79,7 +79,7 @@ func verifyImageCmd() *cobra.Command {
7979
o := &verify.VerifyOptions{}
8080

8181
cmd := &cobra.Command{
82-
Use: "verify-image",
82+
Use: "verify-image [flags] image",
8383
Args: func(cmd *cobra.Command, args []string) error {
8484
if len(args) != 1 {
8585
return errors.New("expects a single path to an image")

0 commit comments

Comments
 (0)