aboutsummaryrefslogtreecommitdiff
path: root/bin/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-03-18 16:49:36 +0000
committerMichael Williamson <mike@zwobble.org>2014-03-18 16:49:36 +0000
commitccdf6f46ae285469ac5ef75e3590bdd7e2e81ec4 (patch)
treeabcdc24e2813eaceae55699f11e7fc8a3cfa85c1 /bin/mammoth
parent8c78bde5725c3442f3b5c9a470615a2fde902e5b (diff)
Use nomnom instead of optimist
Diffstat (limited to 'bin/mammoth')
-rwxr-xr-xbin/mammoth16
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/mammoth b/bin/mammoth
index d8bff0e..16515f1 100755
--- a/bin/mammoth
+++ b/bin/mammoth
@@ -1,6 +1,18 @@
#!/usr/bin/env node
-var optimist = require("optimist");
+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. Output is written to stdout if not set."
+ })
+ .parse();
var main = require("../lib/main");
-main(optimist.argv);
+main(args);