mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
feat(cli): add support for displaying command notes in help output
This commit is contained in:
@@ -243,6 +243,12 @@ ${b("Getting Help:")}
|
||||
out.write(` ${a(opt.flag.padEnd(maxLen + 2))} ${d(opt.description)}\n`);
|
||||
}
|
||||
}
|
||||
if (cmd.notes && cmd.notes.length > 0) {
|
||||
out.write(`\n${b("Notes:")}\n`);
|
||||
for (const note of cmd.notes) {
|
||||
out.write(` ${note}\n`);
|
||||
}
|
||||
}
|
||||
if (cmd.examples && cmd.examples.length > 0) {
|
||||
out.write(`\n${b("Examples:")}\n`);
|
||||
for (const ex of cmd.examples) {
|
||||
|
||||
Reference in New Issue
Block a user