npm commander 7.0.0-0
v7.0.0-0

latest releases: 12.0.0, 12.0.0-1, 12.0.0-0...
3 years ago

Added

  • use .addHelpText() to add text before or after the built-in help, for just current command or also for all subcommands (#1296)
  • enhance Option class (#1331)
    • allow hiding options from help
    • allow restricting option arguments to a list of choices
    • allow setting how default value is shown in help
  • refactor the code generating the help into a separate public Help class (#1365)
    • support sorting subcommands and options in help
    • support specifying wrap width (columns)
    • allow subclassing Help class
    • allow configuring Help class without subclassing

Fixed

  • wrapping bugs in help (#1365)
    • first line of command description was wrapping two characters early
    • pad width calculation was not including help option and help command
    • pad width calculation was including hidden options and commands

Changed

  • document and annotate deprecated routines (#1349)
  • deprecated callback parameter to .help() and .outputHelp() (removed from README) (#1296)
  • deprecate .on('--help') (removed from README) (#1296)
  • initialise the command description to empty string (previously undefined) (#1365)

Don't miss a new commander release

NewReleases is sending notifications on new releases.