We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e20f3cc commit 8d3f6c6Copy full SHA for 8d3f6c6
cli/slsa-verifier/verify.go
@@ -33,6 +33,12 @@ func verifyArtifactCmd() *cobra.Command {
33
34
cmd := &cobra.Command{
35
Use: "verify-artifact [flags] artifact [artifact..]",
36
+ Args: func(cmd *cobra.Command, args []string) error {
37
+ if len(args) < 1 {
38
+ return errors.New("expects at least one artifact")
39
+ }
40
+ return nil
41
+ },
42
Short: "Verifies SLSA provenance on artifact blobs given as arguments (assuming same provenance)",
43
RunE: func(cmd *cobra.Command, args []string) error {
44
v := verify.VerifyArtifactCommand{
0 commit comments