summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2022-03-10 11:11:26 +0100
committerGitHub <noreply@github.com>2022-03-10 11:11:26 +0100
commit5fdd30423eac1f9de8546461e11d5fde26bc7d7c (patch)
tree75fceeb5a6bec5eb2db38e37ddeceb5d22d85ac6 /cmd
parentImprove SyncMirrors logging (#19045) (diff)
downloadforgejo-5fdd30423eac1f9de8546461e11d5fde26bc7d7c.tar.xz
forgejo-5fdd30423eac1f9de8546461e11d5fde26bc7d7c.zip
Fix flag validation (#19046)
Regression from #5785
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cmd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cmd.go b/cmd/cmd.go
index fd713b9aff..3846a86900 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")
}
}