lib/extensions.js
function getArgument(name, args) {
  var flags = args || process.argv.slice(2),
    index = flags.lastIndexOf(name);

  if (index === -1 || index + 1 >= flags.length) {
    return null;
  }

  return flags[index + 1];
}
function getArgument(name, args) {
  var flags = args || process.argv.slice(2),
    index = flags.lastIndexOf(name);

  if (index === -1 || index + 1 >= flags.length) {
    return null;
  }

  return flags[index + 1];
}
function getArgument ( name , args ) { var flags = args || process . argv . slice ( 2 ) , index = flags . lastIndexOf ( name ) ; if ( index === - 1 || index + 1 >= flags . length ) { return null ; } return flags [ index + 1 ] ; }
Get the value of a CLI argument

@param {String} name
@param {Array} args
@api private
Get the value of a CLI argument