diff --git a/packages/gatsby-cli/package.json b/packages/gatsby-cli/package.json index 68f66f1b14845..e55760032b6de 100644 --- a/packages/gatsby-cli/package.json +++ b/packages/gatsby-cli/package.json @@ -28,7 +28,7 @@ "source-map": "^0.5.7", "stack-trace": "^0.0.10", "update-notifier": "^2.3.0", - "yargs": "^11.1.0", + "yargs": "^12.0.5", "yurnalist": "^1.0.2" }, "devDependencies": { diff --git a/packages/gatsby-cli/src/create-cli.js b/packages/gatsby-cli/src/create-cli.js index 9c87fcf0c4c7a..b8daa6261394c 100644 --- a/packages/gatsby-cli/src/create-cli.js +++ b/packages/gatsby-cli/src/create-cli.js @@ -283,6 +283,7 @@ module.exports = argv => { let isLocalSite = isLocalGatsbySite() cli + .scriptName(`gatsby`) .usage(`Usage: $0 [options]`) .alias(`h`, `help`) .alias(`v`, `version`) diff --git a/yarn.lock b/yarn.lock index c44bb6ce897d1..f13154388b637 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20584,7 +20584,7 @@ yargs@^10.0.3: y18n "^3.2.1" yargs-parser "^8.1.0" -yargs@^11.0.0, yargs@^11.1.0: +yargs@^11.0.0: version "11.1.0" resolved "http://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" integrity sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A== @@ -20602,7 +20602,7 @@ yargs@^11.0.0, yargs@^11.1.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yargs@^12.0.2: +yargs@^12.0.2, yargs@^12.0.5: version "12.0.5" resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13" integrity sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==