Fix po2json default option arguments

Similarly to commit cbedf06704, provide default values, so that
`po2json po/de.po` does not error out with

    Option "--module" requires 1 arguments, but 0 were provided
This commit is contained in:
Martin Pitt 2020-12-26 08:05:15 +01:00 committed by Matej Marusak
parent 43c51b979b
commit f93ccb26a8

View file

@ -25,8 +25,8 @@ var argi = 2;
var filename = null; var filename = null;
var opts = stdio.getopt({ var opts = stdio.getopt({
module: { key: "m", args: 1, description: "Module template to include" }, module: { key: "m", args: 1, description: "Module template to include", default: "" },
output: { key: "o", args: 1, description: "Output file" }, output: { key: "o", args: 1, description: "Output file", default: "" },
}); });
if (opts.args.length != 1) { if (opts.args.length != 1) {