Browse Source

Fix flag validation (#19046) (#19051)

Regression from #5785
tags/v1.16.4
Norwin 2 years ago
parent
commit
580401ecbf
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmd/cmd.go

+ 1
- 1
cmd/cmd.go View File

@@ -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")
}
}

Loading…
Cancel
Save