Fix flag validation (#19046)

Regression from #5785
tokarchuk/v1.17
Norwin 3 years ago committed by GitHub
parent 75eb6cc9c1
commit 5fdd30423e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/cmd.go

@ -31,7 +31,7 @@ func argsSet(c *cli.Context, args ...string) error {
return errors.New(a + " is not set") return errors.New(a + " is not set")
} }
if util.IsEmptyString(a) { if util.IsEmptyString(c.String(a)) {
return errors.New(a + " is required") return errors.New(a + " is required")
} }
} }

Loading…
Cancel
Save