Comparing version 3.2.0-rc.11 to 3.2.0-rc.12
@@ -294,3 +294,3 @@ 'use strict'; | ||
throw new Error(); | ||
const requiredOptionsSetStates = terminalStates.filter(state => state.requiredOptions.every(names => names.some(name => state.options.find(opt => opt.name === name)))); | ||
const requiredOptionsSetStates = terminalStates.filter(state => state.selectedIndex === constants.HELP_COMMAND_INDEX || state.requiredOptions.every(names => names.some(name => state.options.find(opt => opt.name === name)))); | ||
if (requiredOptionsSetStates.length === 0) { | ||
@@ -655,2 +655,3 @@ throw new errors.UnknownSyntaxError(input, terminalStates.map(state => ({ | ||
registerDynamic(machine, lastPathNode, `isHelp`, helpNode, [`useHelp`, this.cliIndex]); | ||
registerDynamic(machine, helpNode, `always`, helpNode, `pushExtra`); | ||
registerStatic(machine, helpNode, constants.END_OF_INPUT, constants.NODE_SUCCESS, [`setSelectedIndex`, constants.HELP_COMMAND_INDEX]); | ||
@@ -657,0 +658,0 @@ this.registerOptions(machine, lastPathNode); |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "3.2.0-rc.11", | ||
"version": "3.2.0-rc.12", | ||
"main": "lib/advanced/index", | ||
@@ -17,0 +17,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
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
223305
5165