14.0.0
Added 3
- Support for groups of options and commands in the help using low-level .helpGroup() on Option and Command, and higher-level .optionsGroup() and .commandsGroup() which can be used in chaining way to specify group title for following options/commands
- Support for unescaped negative numbers as option-arguments and command-arguments
- TypeScript: add parseArg property to Argument class
Changed 2
- Commander 14 requires Node.js v20 or higher
- Internal refactor of Help class adding .formatItemList() and .groupItems() methods
Fixed 2
- Remove bogus leading space in help when option has default value but not a description
- .configureOutput() now makes copy of settings instead of modifying in-place, fixing side-effects
From Commander.js
Added
- support for groups of options and commands in the help using low-level
.helpGroup()onOptionandCommand, and higher-level.optionsGroup()and.commandsGroup()which can be used in chaining way to specify group title for following options/commands ([#2328]) - support for unescaped negative numbers as option-arguments and command-arguments ([#2339])
- TypeScript: add
parseArgproperty toArgumentclass ([#2359])
Fixed
- remove bogus leading space in help when option has default value but not a description ([#2348])
.configureOutput()now makes copy of settings instead of modifying in-place, fixing side-effects ([#2350])
Changed
- Breaking: Commander 14 requires Node.js v20 or higher
- internal refactor of
Helpclass adding.formatItemList()and.groupItems()methods ([#2328])