code: function formatArgs(args) {
    args = args || [];
    var split, formattedArgs = [];
  
    args.forEach(function(arg) {
      split = arg.split(/\=(.+)?/, 2);
  
      formattedArgs.push(split[0]);
  
      if (split[1]) {
        formattedArgs.push(split[1]);
      }
    });
  
    return shellEscape(formattedArgs);
  }
docs: Turns an array of `key=value` into proper command-line arguments and flags.
  `['foo=bar', 'header=x-update: 1', '--truthy']` becomes:
  `--foo bar --header "x-update: 1" --truthy`
  
  @method formatArgs
  @param {Array} args An array of `key=value` pairs.
  @return {String} command line arguments