Skip to content

Commit

Permalink
Enhance help message (#418)
Browse files Browse the repository at this point in the history
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 #173 are handled via #231.

Found while looking at #174.

Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>

Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>
  • Loading branch information
mihaimaruseac authored Dec 28, 2022
1 parent 82cb42f commit 8279f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/slsa-verifier/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func verifyArtifactCmd() *cobra.Command {
o := &verify.VerifyOptions{}

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

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

0 comments on commit 8279f4b

Please sign in to comment.