From 5fdd30423eac1f9de8546461e11d5fde26bc7d7c Mon Sep 17 00:00:00 2001 From: Norwin Date: Thu, 10 Mar 2022 11:11:26 +0100 Subject: [PATCH] Fix flag validation (#19046) 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 fd713b9affd..3846a869002 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") } }