g.command 'messages' do |c|
          c.flag 'query', desc: 'Search query.'
          c.flag 'cursor', desc: "Use this when getting results with cursormark pagination. For first call send * for subsequent calls, send the value of next_cursor returned in the previous call's results."
          c.flag 'highlight', desc: 'Pass a value of true to enable query highlight markers (see below).'
          c.flag 'sort', desc: 'Return matches sorted by either score or timestamp.'