8.0.0-0
Pre-release
Pre-release
Added
.getOptionValue()
and.setOptionValue()
(#1521).hook()
with support for'preAction'
and'postAction'
callbacks (#1514).argument(name, description)
for adding command-arguments (#1490).createArgument()
factory method (#1497)- the number of command-arguments is checked for programs without an action handler (#1502)
Changed
- refactor and simplify TypeScript declarations (with no default export) (#1520)
.parseAsync()
is now declared asasync
(#1513)- Breaking:
Help
method.visibleArguments()
returns array ofArgument
(#1490) - Breaking: Commander 8 requires Node.js 12 or higher (#1500)
- Breaking:
CommanderError
codecommander.invalidOptionArgument
renamedcommander.invalidArgument
(#1508) - Breaking: TypeScript declaration for
.addTextHelp()
callback no longer allows result ofundefined
, now juststring
(#1516)
Deprecated
- second parameter of
cmd.description(desc, argDescriptions)
for adding argument descriptions (#1490)- (use new
.argument(name, description)
instead)
- (use new
InvalidOptionArgumentError
(replaced byInvalidArgumentError
) (#1508)
Removed
- Breaking: TypeScript declaration for default export of global
Command
object (#1520)- (still available as named
program
export)
- (still available as named