diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-02-04 18:53:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-04 18:53:02 +0000 |
| commit | 65244218366555756c068b1b8edb37515f6f4e9b (patch) | |
| tree | 57ea7166eaa35c4d3e4b86204d556c0348b5699e /bin | |
| parent | 21ab7c6d791e68e2c3e2884bc5c3ab2455f398d9 (diff) | |
Add CLI argument --output-format
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/mammoth | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/mammoth b/bin/mammoth index 1bc0c27..72d2af0 100755 --- a/bin/mammoth +++ b/bin/mammoth @@ -10,12 +10,17 @@ var args = require("nomnom") .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." + 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." |
