Skip to content

Commit 6c4ac80

Browse files
committed
feat(cli): add support for displaying command notes in help output
1 parent bd46444 commit 6c4ac80

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/cli/src/registry.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ ${b("Getting Help:")}
243243
out.write(` ${a(opt.flag.padEnd(maxLen + 2))} ${d(opt.description)}\n`);
244244
}
245245
}
246+
if (cmd.notes && cmd.notes.length > 0) {
247+
out.write(`\n${b("Notes:")}\n`);
248+
for (const note of cmd.notes) {
249+
out.write(` ${note}\n`);
250+
}
251+
}
246252
if (cmd.examples && cmd.examples.length > 0) {
247253
out.write(`\n${b("Examples:")}\n`);
248254
for (const ex of cmd.examples) {

0 commit comments

Comments
 (0)