diff --git a/src/generators/man-page/index.mjs b/src/generators/man-page/index.mjs index 5a5ca47..c36ad5a 100644 --- a/src/generators/man-page/index.mjs +++ b/src/generators/man-page/index.mjs @@ -72,7 +72,11 @@ export default { .replace('__OPTIONS__', output.options) .replace('__ENVIRONMENT__', output.env); - await writeFile(options.output, filledTemplate); + if (options.output) { + await writeFile(options.output, filledTemplate); + } + + return filledTemplate; }, };