Skip to content

Commit 580401e

Browse files
authored
Fix flag validation (#19046) (#19051)
Regression from #5785
1 parent 7aa2972 commit 580401e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func argsSet(c *cli.Context, args ...string) error {
3131
return errors.New(a + " is not set")
3232
}
3333

34-
if util.IsEmptyString(a) {
34+
if util.IsEmptyString(c.String(a)) {
3535
return errors.New(a + " is required")
3636
}
3737
}

0 commit comments

Comments
 (0)