[ADF-3203] Fixed doc tools bugs from Linux run and added verbose option (#3496)

This commit is contained in:
Andy Stark
2018-06-18 10:27:51 +01:00
committed by Eugenio Romano
parent 257e422a1c
commit 5b3fb4856d
5 changed files with 24 additions and 15 deletions

View File

@@ -53,6 +53,10 @@ function updatePhase(filenames, aggData) {
errorMessages = [];
var pathname = filenames[i]; // path.resolve(srcFolder, filenames[i]);
if (program.verbose) {
console.log(pathname);
}
var src = fs.readFileSync(pathname);
var tree = remark().use(frontMatter, ["yaml"]).parse(src)
@@ -132,6 +136,7 @@ program
.usage("[options] <source>")
.option("-p, --profile [profileName]", "Select named config profile", "default")
.option("-j, --json", "Output JSON data for Markdown syntax tree")
.option("-v, --verbose", "Log doc files as they are processed")
.parse(process.argv);
var sourcePath;