summaryrefslogtreecommitdiff
path: root/bin/mammoth
blob: 1bc0c2705f02187550bac46323dc1bb51a8f25e3 (plain)
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
#!/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 HTML. Images will be stored inline in the HTML. 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("style-map", {
        type: "string",
        help: "File containg a style map."
    })
    .parse();
var main = require("../lib/main");

main(args);