diff options
author | Norwin | 2022-03-10 11:11:26 +0100 |
---|---|---|
committer | GitHub | 2022-03-10 10:11:26 +0000 |
commit | 5fdd30423eac1f9de8546461e11d5fde26bc7d7c (patch) | |
tree | 75fceeb5a6bec5eb2db38e37ddeceb5d22d85ac6 | |
parent | 75eb6cc9c1efde75d2b34d85d4a3e4f8484e6ab4 (diff) |
Fix flag validation (#19046)
Regression from #5785
-rw-r--r-- | cmd/cmd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cmd.go b/cmd/cmd.go index fd713b9af..3846a8690 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") } } |