Skip to content

Commit

Permalink
zeta config: fix missing args
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Dec 11, 2024
1 parent 6dc2dcc commit 30ea0d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/zeta/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ func UpdateConfig(opts *UpdateConfigOptions) error {
i++
continue
}
if len(opts.NameAndValues) <= i+1 {
fmt.Fprintf(os.Stderr, "error: config missing args\n")
return errors.New("missing args")
}
values[kv] = valueCast(opts.NameAndValues[i+1])
i += 2
}
Expand Down

0 comments on commit 30ea0d6

Please sign in to comment.