Commander.js v7.0.0-0 Release Notes

Release Date: 2020-10-25 // over 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)