Skip to content

Commit

Permalink
chore: allow man-page from non-CLI (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev authored Nov 16, 2024
1 parent fb68333 commit bbf44c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/generators/man-page/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
};

Expand Down

0 comments on commit bbf44c4

Please sign in to comment.