Sorting the help menu.

This commit is contained in:
Pedro Gonzalez 2026-01-28 11:21:26 -05:00
parent 01e0d3a320
commit 26b9abe2c9
No known key found for this signature in database
GPG Key ID: F46D532772984974

View File

@ -46,6 +46,7 @@ export function configureProgramHelp(program: Command, ctx: ProgramContext) {
program.configureHelp({ program.configureHelp({
optionTerm: (option) => theme.option(option.flags), optionTerm: (option) => theme.option(option.flags),
subcommandTerm: (cmd) => theme.command(cmd.name()), subcommandTerm: (cmd) => theme.command(cmd.name()),
sortSubcommands: true,
}); });
program.configureOutput({ program.configureOutput({