From 580401ecbfee0f3911532b19ac2c2c9f4875393f Mon Sep 17 00:00:00 2001 From: Norwin Date: Thu, 10 Mar 2022 21:23:55 +0100 Subject: [PATCH] Fix flag validation (#19046) (#19051) Regression from #5785 --- cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index fd713b9affd9..3846a8690020 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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") } }