diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-18 16:49:36 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-18 16:49:36 +0000 |
| commit | ccdf6f46ae285469ac5ef75e3590bdd7e2e81ec4 (patch) | |
| tree | abcdc24e2813eaceae55699f11e7fc8a3cfa85c1 /bin | |
| parent | 8c78bde5725c3442f3b5c9a470615a2fde902e5b (diff) | |
Use nomnom instead of optimist
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/mammoth | 16 |
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); |
