code: function collectArguments(args) {
    for (var i = 0; i < args.length; i += 2) {
      if (args[i].lastIndexOf('--', 0) !== 0) {
        --i;
        continue;
      }
  
      flags[args[i]] = args[i + 1];
    }
  }
docs: Collect Arguments
  
  @param {Array} args
  @api private