From 65244218366555756c068b1b8edb37515f6f4e9b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 4 Feb 2015 18:53:02 +0000 Subject: Add CLI argument --output-format --- bin/mammoth | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') 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." -- cgit v1.2.3