docs: function command(cmd, args, info) {
    var map = info.commands || Constants.MAP
      , def = map[cmd]
      , sub;
  
    // support command exec handlers that
    // encapsulate the definition
    if(def && def.definition !== undefined) {
      def = def.definition;
    }
  
    // top-level command
    if(def === undefined) {
      throw new UnknownCommand(cmd);
    }
  
    // made it this far, check subcommands
    // for commands that require a subcommand
    if(Constants.SUBCOMMAND[cmd] && args.length > 0) {
      sub = Constants.SUBCOMMAND[cmd][args[0]];
      if(!sub) {
        if(cmd === Constants.MAP.client.name) {
          throw ClientSyntax;
        }
        throw UnknownSubcommand;
      }
      // mutate the sub response to include
      // the subcommand as a primary command
      // and the remaining arguments, callers
      // can use this to locate a subcommand
      // execution method
      sub = {def: sub, cmd: args[0], args: args.slice(1)};
    }
  
    return {cmd: cmd, args: args, def: def, sub: sub};
  }