1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/env node
var args = require("nomnom")
.option("docx-path", {
position: 0,
required: true,
type: "string",
help: "Path to the .docx file to convert."
})
.option("output-path", {
position: 1,
type: "string",
help: "Output path for the generated document. Images will be stored inline in the output document. Output is written to stdout if not set."
})
.option("output-dir", {
type: "string",
help: "Output directory for generated HTML and images. Images will be stored in separate files. Takes precedence over output-path."
})
.option("output-format", {
default: "html",
choices: ["html", "markdown"],
help: "Output format."
})
.option("style-map", {
type: "string",
help: "File containg a style map."
})
.parse();
var main = require("../lib/main");
main(args);
|