Fix flag validation (#19046) (#19051)

Regression from #5785
This commit is contained in:
Norwin 2022-03-10 21:23:55 +01:00 committed by GitHub
parent 7aa29720f0
commit 580401ecbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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