rework no_argument to be easier to translate

This commit is contained in:
nytpu
2021-05-11 18:18:22 -06:00
parent 3dcbb9bb1e
commit 27ff58d7dc
3 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -78,11 +78,11 @@ func main() {
switch os.Args[1] {
case "refresh":
argCheck(c.Args(), 0, false, core.TranslateString("'refresh' %s", "errors.no_argument", nil))
argCheck(c.Args(), 0, false, localizer.Get("errors.no_argument", &localizations.Replacements{"command": "'refresh'"}))
core.Timeout = *refreshTimeoutFlag
fetch.RefreshAll(&core.Data, *refreshWorkersFlag)
case "regenerate":
argCheck(c.Args(), 0, false, core.TranslateString("'regenerate' %s", "errors.no_argument", nil))
argCheck(c.Args(), 0, false, localizer.Get("errors.no_argument", &localizations.Replacements{"command": "'regenerate'"}))
case "add":
argCheck(c.Args(), 1, true, localizer.Get("errors.no_url_add"))