static async autoCompleteValidationOptions(argDef) {
    const thiz = this;
    async function onLastEntry(argDef, traversalStack) {
      const currentElement = traversalStack[traversalStack.length - 1];
      // Check each option only once during the traversal, but before its children.
      if (argDef.validationOptions[currentElement.name] === true) {
        thiz.autoCompleteValidationFromStack(argDef, traversalStack);
      }
    }

    await this.traverseTreeWithActions(argDef, { onLastEntry });
  }
/**
   * Auto-completes validation options according to the dependencies' tree.
   * Adds validation options which are implied by existing options.
   * @param  {CommandArgDef} argDef the argument definition
   */
Auto-completes validation options according to the dependencies' tree.
Adds validation options which are implied by existing options.
@param  {CommandArgDef} argDef the argument definition
Auto - completes validation options according to the dependencies ' tree . Adds validation options which are implied by existing options . @param { CommandArgDef } argDef the argument definition
static async autoCompleteValidationOptions(argDef) {
    const thiz = this;
    async function onLastEntry(argDef, traversalStack) {
      const currentElement = traversalStack[traversalStack.length - 1];
      if (argDef.validationOptions[currentElement.name] === true) {
        thiz.autoCompleteValidationFromStack(argDef, traversalStack);
      }
    }
    await this.traverseTreeWithActions(argDef, { onLastEntry });
  }
static async autoCompleteValidationOptions ( argDef ) { const thiz = this ; async function onLastEntry ( argDef , traversalStack ) { const currentElement = traversalStack [ traversalStack . length - 1 ] ; if ( argDef . validationOptions [ currentElement . name ] === true ) { thiz . autoCompleteValidationFromStack ( argDef , traversalStack ) ; } } await this . traverseTreeWithActions ( argDef , { onLastEntry } ) ; }
Auto-completes validation options according to the dependencies' tree.
Auto - completes validation options according to the dependencies ' tree .
// Check each option only once during the traversal, but before its children.