Skip to content

Commit

Permalink
chore: allow man-page from non-CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev committed Nov 16, 2024
1 parent 24aaa11 commit 3086447
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 3086447

Please sign in to comment.