Comparing version 4.4.2 to 4.4.3
@@ -173,3 +173,3 @@ 'use strict'; | ||
const commandText = chalk.magenta(this.opts.displayCommands ? '<command> ' : `${this.command.command.name} `); | ||
const commandText = this.command ? chalk.magenta(this.opts.displayCommands ? '<command> ' : `${this.command.command.name} `) : ''; | ||
help += `${chalk.bold('USAGE')}\n\n`; | ||
@@ -367,3 +367,5 @@ help += redent(`${chalk.dim.italic(this.root.bin)} ${commandText}${chalk.yellow('[options]')}`, 2); | ||
const displayCommands = !isExplictCommand(this.firstArg); | ||
// Do not display `<command>` in help if it's a sub command | ||
const displayCommands = !( // This matches a sub command | ||
this.matchedCommand && isExplictCommand(this.firstArg)); | ||
const help = new Help(this, this.matchedCommand, { | ||
@@ -370,0 +372,0 @@ displayCommands |
{ | ||
"name": "cac", | ||
"version": "4.4.2", | ||
"version": "4.4.3", | ||
"description": "Command-line queen.", | ||
@@ -44,3 +44,3 @@ "repository": { | ||
"devDependencies": { | ||
"ava": "^0.21.0", | ||
"ava": "^0.25.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.23.0", | ||
@@ -51,2 +51,3 @@ "babel-preset-env": "^1.6.0", | ||
"eslint-config-rem": "^3.0.0", | ||
"execa": "^0.9.0", | ||
"markdown-toc": "^1.1.0", | ||
@@ -53,0 +54,0 @@ "xo": "^0.18.0" |
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
22097
379
9