lib/parsed-args.js
/**
 * If the current argument is the --outfile argument,
 * then this function parses it 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 --outfile argument,
then this function parses it 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 -- outfile argument then this function parses it 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 parseOutfile (args, parsed) {
  let arg = parseNameValueArg(args, parsed, "-o", "--outfile");
  if (arg) {
    if (helpers.isDirectory(arg.value)) {
      parsed.outfileIndex = parsed.args.length;
      parsed.args.push(helpers.rename.bind(null, arg.prefix, arg.value));
    }
    else {
      parsed.args.push(arg.prefix + arg.value);
    }
    return true;
  }
}
function parseOutfile ( args , parsed ) { let arg = parseNameValueArg ( args , parsed , "-o" , "--outfile" ) ; if ( arg ) { if ( helpers . isDirectory ( arg . value ) ) { parsed . outfileIndex = parsed . args . length ; parsed . args . push ( helpers . rename . bind ( null , arg . prefix , arg . value ) ) ; } else { parsed . args . push ( arg . prefix + arg . value ) ; } return true ; } }
If the current argument is the --outfile argument,
 then this function parses it and shifts it to {@link ParsedArgs#args}.
If the current argument is the -- outfile argument then this function parses it and shifts it to { @link ParsedArgs#args } .
// The output filename will be different for each bundle // Pass the argument as-is