#!/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);