commander 2.17.0 → 2.17.1
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 +5 -0
- package/index.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -660,7 +660,8 @@ Command.prototype.parseArgs = function(args, unknown) {
|
|
|
660
660
|
if (unknown.length > 0) {
|
|
661
661
|
this.unknownOption(unknown[0]);
|
|
662
662
|
}
|
|
663
|
-
if (this.
|
|
663
|
+
if (this.commands.length === 0 &&
|
|
664
|
+
this._args.filter(function(a) { return a.required }).length === 0) {
|
|
664
665
|
this.emit('command:*');
|
|
665
666
|
}
|
|
666
667
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commander",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.1",
|
|
4
4
|
"description": "the complete solution for node.js command-line programs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commander",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/node": "^10.5.
|
|
30
|
-
"eslint": "^5.
|
|
29
|
+
"@types/node": "^10.5.7",
|
|
30
|
+
"eslint": "^5.3.0",
|
|
31
31
|
"should": "^13.2.3",
|
|
32
32
|
"sinon": "^6.1.4",
|
|
33
33
|
"standard": "^11.0.1",
|