Skip to content

Commit

Permalink
Enhance help message
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 slsa-framework#173 are handled via slsa-framework#231.

Found while looking at slsa-framework#174.

Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>
  • Loading branch information
mihaimaruseac committed Dec 28, 2022
1 parent 82cb42f commit be5b015
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 be5b015

Please sign in to comment.