yargs 15.0.1 → 15.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/yargs.js +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [15.0.2](https://www.github.com/yargs/yargs/compare/v15.0.1...v15.0.2) (2019-11-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* temporary fix for libraries that call Object.freeze() ([#1483](https://www.github.com/yargs/yargs/issues/1483)) ([99c2dc8](https://www.github.com/yargs/yargs/commit/99c2dc850e67c606644f8b0c0bca1a59c87dcbcd))
|
|
11
|
+
|
|
5
12
|
### [15.0.1](https://www.github.com/yargs/yargs/compare/v15.0.0...v15.0.1) (2019-11-16)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/yargs.js
CHANGED
|
@@ -1190,9 +1190,15 @@ function Yargs (processArgs, cwd, parentRequire) {
|
|
|
1190
1190
|
// we temporarily populate '--' rather than _, with arguments
|
|
1191
1191
|
// after the '--' directive. After the parse, we copy these back.
|
|
1192
1192
|
self._copyDoubleDash = function (argv) {
|
|
1193
|
-
if (!argv._) return argv
|
|
1193
|
+
if (!argv._ || !argv['--']) return argv
|
|
1194
1194
|
argv._.push.apply(argv._, argv['--'])
|
|
1195
|
-
|
|
1195
|
+
|
|
1196
|
+
// TODO(bcoe): refactor command parsing such that this delete is not
|
|
1197
|
+
// necessary: https://github.com/yargs/yargs/issues/1482
|
|
1198
|
+
try {
|
|
1199
|
+
delete argv['--']
|
|
1200
|
+
} catch (_err) {}
|
|
1201
|
+
|
|
1196
1202
|
return argv
|
|
1197
1203
|
}
|
|
1198
1204
|
|