lib/parsed-args.js
/**
 * If the current argument is the --exclude argument,
 * then this function sets {@link ParsedArgs.globOptions.ignore}
 * and shifts it to {@link ParsedArgs#args}.
 *
 * @param {string[]} args - The command-line arguments that have not yet been parsed
 * @param {ParsedArgs} parsed - The command-line arguments that have already been parsed
 * @returns {boolean}
 */
If the current argument is the --exclude argument,
then this function sets  ParsedArgs.globOptions.ignore
and shifts it to  ParsedArgs#args.

@param {string[]} args - The command-line arguments that have not yet been parsed
@param {ParsedArgs} parsed - The command-line arguments that have already been parsed
@returns {boolean}
If the current argument is the -- exclude argument then this function sets ParsedArgs . globOptions . ignore and shifts it to ParsedArgs#args . @param { string [] } args - The command - line arguments that have not yet been parsed @param { ParsedArgs } parsed - The command - line arguments that have already been parsed @returns { boolean }
function parseExclude (args, parsed) {
  let arg = parseNameValueArg(args, parsed, "-u", "--exclude");
  if (arg) {
    parsed.globOptions.ignore.push(arg.value);
    parsed.args.push(arg.prefix + arg.value);
    return true;
  }
}
function parseExclude ( args , parsed ) { let arg = parseNameValueArg ( args , parsed , "-u" , "--exclude" ) ; if ( arg ) { parsed . globOptions . ignore . push ( arg . value ) ; parsed . args . push ( arg . prefix + arg . value ) ; return true ; } }
If the current argument is the --exclude argument,
 then this function sets {@link ParsedArgs.globOptions.ignore}
 and shifts it to {@link ParsedArgs#args}.
If the current argument is the -- exclude argument then this function sets { @link ParsedArgs . globOptions . ignore } and shifts it to { @link ParsedArgs#args } .