add a quiet option to markoc (#1030)

This commit is contained in:
Michael Rawlings 2018-04-06 12:31:34 -07:00 committed by Dylan Piercey
parent c04495d5e9
commit 290cd500f6

View File

@ -80,6 +80,10 @@ var args = require("argly")
description:
"Additional directories to add to the Node.js module search path"
},
"--quiet -q": {
type: "boolean",
description: "Only print warnings and errors"
},
"--vdom -V": {
type: "boolean",
description: "VDOM output"
@ -336,13 +340,14 @@ if (args.clean) {
found[path] = true;
var outPath = path + ".js";
console.log(
"Compiling:\n Input: " +
relPath(path) +
"\n Output: " +
relPath(outPath) +
"\n"
);
if (!args.quiet)
console.log(
"Compiling:\n Input: " +
relPath(path) +
"\n Output: " +
relPath(outPath) +
"\n"
);
context.beginAsync();