Skip to content

Commit

Permalink
Fix flag validation (#19046) (#19051)
Browse files Browse the repository at this point in the history
Regression from #5785
  • Loading branch information
noerw authored Mar 10, 2022
1 parent 7aa2972 commit 580401e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func argsSet(c *cli.Context, args ...string) error {
return errors.New(a + " is not set")
}

if util.IsEmptyString(a) {
if util.IsEmptyString(c.String(a)) {
return errors.New(a + " is required")
}
}
Expand Down

0 comments on commit 580401e

Please sign in to comment.