Skip to content
Myr

Combine prerelease 7 versions together (#1418)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent d8faba2 · Browse files · 1 file+34 added−41 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+34 added−41 removed

  • other:+34 added−41 removed

1 file+34 added−41 removed

modified:CHANGELOG.md+34 added-41 removed
6 unmodified lines
78<!-- markdownlint-disable MD024 -->9<!-- markdownlint-disable MD004 -->1011## [7.0.0-2] (2020-12-14)11## [7.0.0] (date goes here)1213### Added1415- *Breaking:* error message if there are too many command-arguments on command line for the action handler ([#1409])16 - if should be allowed then declare extra arguments, or use `.allowExcessArguments()`17- `.configureOutput()` to modify use of stdout and stderr or customise display of errors ([#1387])18- use `.addHelpText()` to add text before or after the built-in help, for just current command or also for all subcommands ([#1296])19- enhance Option class ([#1331])20 - allow hiding options from help21 - allow restricting option arguments to a list of choices22 - allow setting how default value is shown in help23- `.createOption()` to support subclassing of automatically created options (like `.createCommand()`) ([#1380])24- refactor the code generating the help into a separate public Help class ([#1365])25 - support sorting subcommands and options in help26 - support specifying wrap width (columns)27 - allow subclassing Help class28 - allow configuring Help class without subclassing2930### Changed3132- *Breaking:* options are stored safely by default, not as properties on the command ([#1409])33 - this especially affects accessing options on program, use `program.opts()`34 - revert behaviour with `.storeOptionsAsProperties()`35- *Breaking:* action handlers are passed options and command separately ([#1409])36- deprecated callback parameter to `.help()` and `.outputHelp()` (removed from README) ([#1296])37- *Breaking:* errors now displayed using `process.stderr.write()` instead of `console.error()`38- deprecate `.on('--help')` (removed from README) ([#1296])39- initialise the command description to empty string (previously undefined) ([#1365])40- document and annotate deprecated routines ([#1349])4120### Added42### Fixed4322- *Breaking:* error message if there are too many command-arguments on command line for the action handler ([#1409])23 - if should be allowed then declare extra arguments, or use `.allowExcessArguments()`2444- wrapping bugs in help ([#1365])45 - first line of command description was wrapping two characters early46 - pad width calculation was not including help option and help command47 - pad width calculation was including hidden options and commands48 49### Deleted5051- *Breaking:* `.passCommandToAction()` ([#1409])52 - no longer needed as action handler is passed options and command
92 unmodified lines
145 .allowExcessArguments()146 .action(() => {});147```148125## [7.0.0-1] (2020-11-21)149## [7.0.0-2] (2020-12-14)150127### Added151(Released in 7.0.0)152129- `.createOption()` to support subclassing of automatically created options (like `.createCommand()`) ([#1380])130- `.configureOutput()` to modify use of stdout and stderr or customise display of errors ([#1387])153## [7.0.0-1] (2020-11-21)154132### Breaking changes relative to 7.0.0-0155(Released in 7.0.0)156134- rework new `Help.wrap()` for simpler usage pattern (#1395)135- rename new "columns" properties (#1396)136 - `Help.columns` -> `helpWidth`137 - `getOutColumns()` -> `getOutHelpWidth()`138 - `getErrColumns()` -> `getErrHelpWidth()`139157## [7.0.0-0] (2020-10-25)158142### Added159(Released in 7.0.0)160144- use `.addHelpText()` to add text before or after the built-in help, for just current command or also for all subcommands ([#1296])145- enhance Option class ([#1331])146 - allow hiding options from help147 - allow restricting option arguments to a list of choices148 - allow setting how default value is shown in help149- refactor the code generating the help into a separate public Help class ([#1365])150 - support sorting subcommands and options in help151 - support specifying wrap width (columns)152 - allow subclassing Help class153 - allow configuring Help class without subclassing154 155### Fixed156157- wrapping bugs in help ([#1365])158 - first line of command description was wrapping two characters early159 - pad width calculation was not including help option and help command160 - pad width calculation was including hidden options and commands161 162### Changed163164- document and annotate deprecated routines ([#1349])165- deprecated callback parameter to `.help()` and `.outputHelp()` (removed from README) ([#1296])166- deprecate `.on('--help')` (removed from README) ([#1296])167- initialise the command description to empty string (previously undefined) ([#1365])161## [6.2.1] (2020-12-13)162163### Fixed164
253 unmodified lines