Skip to content

Commit ad3ecf0

Browse files
authored
Add 13.1 to CHANGELOG (#2315)
1 parent 2619c99 commit ad3ecf0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

CHANGELOG.md

+29
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
<!-- markdownlint-disable MD024 -->
99
<!-- markdownlint-disable MD004 -->
1010

11+
## [13.1.0] (2025-01-21)
12+
13+
### Added
14+
15+
- support a pair of long option flags to allow a memorable shortened flag, like `.option('--ws, --workspace')` ([#2312])
16+
1117
## [13.0.0] (2024-12-30)
1218

1319
### Added
@@ -74,6 +80,27 @@ program.action((options) => {
7480
});
7581
```
7682

83+
**Stricter option flag parsing**
84+
85+
Commander now throws an error for option flag combinations that are not supported.
86+
In particular, a short flag with multiple characters is now an error.
87+
88+
```js
89+
program.option('-ws, --workspace'); // throws error
90+
```
91+
92+
A short option has a single character:
93+
94+
```js
95+
program.option('-w, --workspace');
96+
```
97+
98+
Or 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:
99+
100+
```js
101+
program.option('--ws, --workspace');
102+
```
103+
77104
## [13.0.0-0] (2024-12-07)
78105

79106
(Released in 13.0.0)
@@ -1360,6 +1387,7 @@ program
13601387
[#2251]: https://github.com/tj/commander.js/pull/2251
13611388
[#2270]: https://github.com/tj/commander.js/pull/2270
13621389
[#2299]: https://github.com/tj/commander.js/pull/2299
1390+
[#2312]: https://github.com/tj/commander.js/pull/2312
13631391

13641392

13651393
<!-- Referenced in 5.x -->
@@ -1440,6 +1468,7 @@ program
14401468
[#1028]: https://github.com/tj/commander.js/pull/1028
14411469

14421470
[Unreleased]: https://github.com/tj/commander.js/compare/master...develop
1471+
[13.1.0]: https://github.com/tj/commander.js/compare/v13.0.0...v13.1.0
14431472
[13.0.0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0
14441473
[13.0.0-0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0-0
14451474
[12.1.0]: https://github.com/tj/commander.js/compare/v12.0.0...v12.1.0

0 commit comments

Comments
 (0)