Skip to content

Commit d674636

Browse files
committed
fix multivalued input for eval
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 2421429 commit d674636

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/cli/cmd/policy_develop_eval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ evaluates the policy against the provided material or attestation.`,
7272
cmd.Flags().StringVar(&kind, "kind", "", fmt.Sprintf("Kind of the material: %q", schemaapi.ListAvailableMaterialKind()))
7373
cmd.Flags().StringSliceVar(&annotations, "annotation", []string{}, "Key-value pairs of material annotations (key=value)")
7474
cmd.Flags().StringVarP(&policyPath, "policy", "p", "policy.yaml", "Path to custom policy file")
75-
cmd.Flags().StringSliceVar(&inputs, "input", []string{}, "Key-value pairs of policy inputs (key=value)")
75+
cmd.Flags().StringArrayVar(&inputs, "input", []string{}, "Key-value pairs of policy inputs (key=value)")
7676
cmd.Flags().StringSliceVar(&allowedHostnames, "allowed-hostnames", []string{}, "Additional hostnames allowed for http.send requests in policies")
7777

7878
return cmd

0 commit comments

Comments
 (0)