From 32e86dc69903def63f4aa9e35f06dcfa98e7c656 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 1 Nov 2019 10:11:28 +0000 Subject: [PATCH 1/2] Update dependency commander to v4 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 25523126..f95e0bb8 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "busboy": "0.3.1", "chalk": "2.4.2", "cheerio": "0.22.0", - "commander": "3.0.2", + "commander": "4.0.0", "express": "4.17.1", "file-type": "12.3.1", "filenamify": "4.1.0", diff --git a/yarn.lock b/yarn.lock index b38c2e45..5246cdd7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2205,10 +2205,10 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -commander@3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/commander/-/commander-3.0.2.tgz#6837c3fb677ad9933d1cfba42dd14d5117d6b39e" - integrity sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow== +commander@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-4.0.0.tgz#e782b6afe6a0f1b1408be59429919e1305160e3f" + integrity sha512-SEa2abMBTZuEjLVYpNrAFoRgxPwG4rXP3+SGY6CM/HZGeDzIA7Pzp+7H3AHDukKEpyy2SoSGGPShKqqfH9T9AQ== commander@^2.19.0, commander@^2.20.0, commander@~2.20.0: version "2.20.0" From e09599aeae474c854a15b3b66b665ad01c610399 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 1 Nov 2019 12:51:57 +0200 Subject: [PATCH 2/2] Fix running commands --- src/command-line/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command-line/index.js b/src/command-line/index.js index 734e1e84..fb0a73de 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -60,7 +60,7 @@ require("./outdated"); // See https://github.com/tj/commander.js/blob/fefda77f463292/index.js#L686-L763 program.parse(argvWithoutOptions.args.concat(argvWithoutOptions.unknown)); -if (!program.args.length) { +if (program.rawArgs.length < 3) { program.help(); }