code: function normalizeCmd(cmd, options) {
    if (cmd.cmd) {
      options = options || {};
      _.extend(options, cmd);
      cmd = options.cmd;
      delete options.cmd;
    }
    if (typeof(cmd) === 'string') {
      cmd = {
        command: cmd
      };
    }
    if (typeof(cmd.args) === 'undefined') {
      cmd.args = shellParse(cmd.command);
      cmd.command = cmd.args.shift();
    }
    return cmd;
  }
docs: normalizeCmd('cmd string') normalizeCmd({command: 'name', args: [...]})