Fix building PO template
The current version failed with
Option "--directory" requires 1 arguments, but 0 were provided
In the current stdio npm module version, getopt() now requires a
`default:` attribute, otherwise it considers the options as required.
Also sync PO helpers with current cockpit.
Add PO template build to travis check, to make sure that it keeps
working.
Closes #375
This commit is contained in:
parent
6f8cd78783
commit
cbedf06704
4 changed files with 19 additions and 10 deletions
|
|
@ -45,9 +45,9 @@ try {
|
|||
}
|
||||
|
||||
var opts = stdio.getopt({
|
||||
directory: { key: "d", args: 1, description: "Base directory for input files" },
|
||||
directory: { key: "d", args: 1, description: "Base directory for input files", default: "." },
|
||||
output: { key: "o", args: 1, description: "Output file" },
|
||||
from: { key: "f", args: 1, description: "File containing list of input files" },
|
||||
from: { key: "f", args: 1, description: "File containing list of input files", default: "" },
|
||||
});
|
||||
|
||||
if (!opts.from && opts.args.length < 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue