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:
parent
43c51b979b
commit
f93ccb26a8
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue