Skip to content

Commit 985eb01

Browse files
committed
fix(cli) let's be quiet if using the --output option
Signed-off-by: Jerome Simeon <[email protected]>
1 parent 766d4dc commit 985eb01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/markdown-cli/lib/commands.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ class Commands {
138138
finalFormat = from;
139139
}
140140

141-
if (outputPath) { Commands.printFormatToFile(result,finalFormat,outputPath); }
141+
if (outputPath) {
142+
Commands.printFormatToFile(result,finalFormat,outputPath);
143+
return;
144+
}
142145
return Promise.resolve(Commands.printFormatToString(result,finalFormat));
143146
}
144147
}

0 commit comments

Comments
 (0)