static autoCompleteValidationFromStack(argDef, stack) {
    for (let i = stack.length - 1; i >= 1; i--) {
      argDef.validationOptions[stack[i].name] = true;
    }
  }
/**
   * Auto-completes validation options according to the current state of the validation tree's traversal stack.
   * Should be called from a traversal function.
   * @param  {CommandArgDef} argDef the argument definition
   * @param  {Array<Object>} stack  the current traversal stack of the validation tree
   */
Auto-completes validation options according to the current state of the validation tree's traversal stack.
Should be called from a traversal function.
@param  {CommandArgDef} argDef the argument definition
@param  {Array} stack  the current traversal stack of the validation tree
Auto - completes validation options according to the current state of the validation tree ' s traversal stack . Should be called from a traversal function . @param { CommandArgDef } argDef the argument definition @param { Array } stack the current traversal stack of the validation tree
static autoCompleteValidationFromStack(argDef, stack) {
    for (let i = stack.length - 1; i >= 1; i--) {
      argDef.validationOptions[stack[i].name] = true;
    }
  }
static autoCompleteValidationFromStack ( argDef , stack ) { for ( let i = stack . length - 1 ; i >= 1 ; i -- ) { argDef . validationOptions [ stack [ i ] . name ] = true ; } }
Auto-completes validation options according to the current state of the validation tree's traversal stack.
Auto - completes validation options according to the current state of the validation tree ' s traversal stack .