Comparing version 6.4.2 to 6.4.3
@@ -653,3 +653,3 @@ 'use strict'; | ||
} | ||
setParsedInfo({ args, options, rawOptions }, matchedCommand) { | ||
setParsedInfo({ args, options, rawOptions }, matchedCommand, matchedCommandName) { | ||
this.args = args; | ||
@@ -661,2 +661,5 @@ this.options = options; | ||
} | ||
if (matchedCommandName) { | ||
this.matchedCommandName = matchedCommandName; | ||
} | ||
return this; | ||
@@ -682,3 +685,3 @@ } | ||
const parsedInfo = Object.assign({}, mriResult, { args: mriResult.args.slice(1) }); | ||
this.setParsedInfo(parsedInfo, command); | ||
this.setParsedInfo(parsedInfo, command, commandName); | ||
this.emit(`command:${commandName}`, command); | ||
@@ -685,0 +688,0 @@ } |
{ | ||
"name": "cac", | ||
"version": "6.4.2", | ||
"version": "6.4.3", | ||
"description": "Simple yet powerful framework for building command-line apps.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -89,4 +89,4 @@ <img width="945" alt="2017-07-26 9 27 05" src="https://user-images.githubusercontent.com/8784712/28623641-373450f4-7249-11e7-854d-1b076dab274d.png"> | ||
cli.option('--eslint [config]', 'Choose an ESLint config', { | ||
default: 'standard' | ||
cli.option('--type [type]', 'Choose a project type', { | ||
default: 'node' | ||
}) | ||
@@ -300,3 +300,3 @@ cli.option('--name <name>', 'Provide your name') | ||
The option also accepts a third argument `config` for addtional command config: | ||
The option also accepts a third argument `config` for additional command config: | ||
@@ -312,3 +312,3 @@ - `config.allowUnknownOptions`: `boolean` Allow unknown options in this command. | ||
The option also accepts a third argument `config` for addtional option config: | ||
The option also accepts a third argument `config` for additional option config: | ||
@@ -315,0 +315,0 @@ - `config.default`: Default value for the option. |
@@ -21,3 +21,4 @@ /// <reference types="node" /> | ||
globalCommand: GlobalCommand; | ||
matchedCommand: Command; | ||
matchedCommand?: Command; | ||
matchedCommandName?: string; | ||
/** | ||
@@ -24,0 +25,0 @@ * Raw CLI arguments |
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
48982
996