Skip to content

Commit 3086447

Browse files
committed
chore: allow man-page from non-CLI
1 parent 24aaa11 commit 3086447

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/generators/man-page/index.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export default {
7272
.replace('__OPTIONS__', output.options)
7373
.replace('__ENVIRONMENT__', output.env);
7474

75-
await writeFile(options.output, filledTemplate);
75+
if (options.output) {
76+
await writeFile(options.output, filledTemplate);
77+
}
78+
79+
return filledTemplate;
7680
},
7781
};
7882

0 commit comments

Comments
 (0)