From f93ccb26a82e3833fd870f018733a471b15cf23e Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 26 Dec 2020 08:05:15 +0100 Subject: [PATCH] Fix po2json default option arguments Similarly to commit cbedf06704c1, provide default values, so that `po2json po/de.po` does not error out with Option "--module" requires 1 arguments, but 0 were provided --- po/po2json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/po2json b/po/po2json index 67cedde..d521f30 100755 --- a/po/po2json +++ b/po/po2json @@ -25,8 +25,8 @@ var argi = 2; var filename = null; var opts = stdio.getopt({ - module: { key: "m", args: 1, description: "Module template to include" }, - output: { key: "o", args: 1, description: "Output file" }, + module: { key: "m", args: 1, description: "Module template to include", default: "" }, + output: { key: "o", args: 1, description: "Output file", default: "" }, }); if (opts.args.length != 1) {