Skip to content
Myr

Add 13.1 to CHANGELOG (#2315)

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 2619c99 · Browse files · 1 file+29 added−0 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+29 added−0 removed

  • other:+29 added−0 removed

1 file+29 added−0 removed

modified:CHANGELOG.md+29 added
6 unmodified lines
78<!-- markdownlint-disable MD024 -->9<!-- markdownlint-disable MD004 -->1011## [13.1.0] (2025-01-21)1213### Added1415- support a pair of long option flags to allow a memorable shortened flag, like `.option('--ws, --workspace')` ([#2312])1617## [13.0.0] (2024-12-30)1819### Added20
58 unmodified lines
79 console.log(program.args);80});81```8283**Stricter option flag parsing**8485Commander now throws an error for option flag combinations that are not supported.86In particular, a short flag with multiple characters is now an error.8788```js89program.option('-ws, --workspace'); // throws error90```9192A short option has a single character:9394```js95program.option('-w, --workspace');96```9798Or from Commander 13.1 you can have an extra long flag instead of a short flag to allow a more memorable shortcut for the full name:99100```js101program.option('--ws, --workspace');102```103104## [13.0.0-0] (2024-12-07)105106(Released in 13.0.0)107
1278 unmodified lines
1386[#2223]: https://github.com/tj/commander.js/pull/22231387[#2251]: https://github.com/tj/commander.js/pull/22511388[#2270]: https://github.com/tj/commander.js/pull/22701389[#2299]: https://github.com/tj/commander.js/pull/22991390[#2312]: https://github.com/tj/commander.js/pull/2312139113921393<!-- Referenced in 5.x -->1394[#1]: https://github.com/tj/commander.js/issues/1
72 unmodified lines
1467[#1026]: https://github.com/tj/commander.js/pull/10261468[#1028]: https://github.com/tj/commander.js/pull/102814691470[Unreleased]: https://github.com/tj/commander.js/compare/master...develop1471[13.1.0]: https://github.com/tj/commander.js/compare/v13.0.0...v13.1.01472[13.0.0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.01473[13.0.0-0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0-01474[12.1.0]: https://github.com/tj/commander.js/compare/v12.0.0...v12.1.01475[12.0.0]: https://github.com/tj/commander.js/compare/v11.1.0...v12.0.0
50 unmodified lines