Skip to content

Commit

Permalink
Fix flag validation (#19046)
Browse files Browse the repository at this point in the history
Regression from #5785
  • Loading branch information
noerw committed Mar 10, 2022
1 parent 75eb6cc commit 5fdd304
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 5fdd304

Please sign in to comment.