Comparing version 4.3.5 to 4.3.6
@@ -276,3 +276,3 @@ 'use strict'; | ||
class Cac extends EventEmitter { | ||
constructor({ bin, pkg, showHelp } = {}) { | ||
constructor({ bin, pkg } = {}) { | ||
super(); | ||
@@ -283,3 +283,2 @@ this.bin = bin || path.basename(process.argv[1]); | ||
this.extraHelps = []; | ||
this.shouldShowHelp = showHelp || ((command, input, flags) => flags.help); | ||
@@ -394,3 +393,3 @@ this.pkg = Object.assign({}, pkg || readPkg.sync({ cwd: parentDir, normalize: false }).pkg); | ||
parse(argv, { run = true } = {}) { | ||
parse(argv, { run = true, showHelp } = {}) { | ||
this.started = true; | ||
@@ -419,3 +418,5 @@ argv = argv || process.argv.slice(2); | ||
if (this.shouldShowHelp(command, input, flags)) { | ||
const shouldShowHelp = showHelp || ((command, input, flags) => flags.help); | ||
if (shouldShowHelp(command, input, flags)) { | ||
this.showHelp(); | ||
@@ -422,0 +423,0 @@ } else if (flags.version) { |
{ | ||
"name": "cac", | ||
"version": "4.3.5", | ||
"version": "4.3.6", | ||
"description": "Command-line queen.", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21643