Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Commands:
-v, --version, version Output the version number

Options:
-o, --outFile [path] If instead of piping content you want it to be written to an html file locally please specify the relative path
-o, --out [path] If instead of piping content you want it to be written to an html file locally please specify the relative path
```

By default tap parser should be pipeable as such:
Expand Down
3 changes: 2 additions & 1 deletion bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Commands:
-v, --version, version Output the version number

Options:
-o, --outFile [path] If instead of piping content you want it to be written to an html file locally please specify the relative path
-o, --out [path] If instead of piping content you want it to be written to an html file locally please specify the relative path
`);
exitCode = 0;
break;
Expand All @@ -53,6 +53,7 @@ process.stdin
// Produce output either in a file or on stdout.
if (out) {
const outputPath = path.resolve(__dirname, out);
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
fs.writeFileSync(outputPath, output);
} else {
process.stdout.write(output);
Expand Down