    # File lib/yard/cli/yri.rb, line 49
          def run(*args)
            optparse(*args)

            if ::RbConfig::CONFIG['host_os'] =~ /mingw|win32/
              @serializer ||= YARD::Serializers::StdoutSerializer.new
            else
              @serializer ||= YARD::Serializers::ProcessSerializer.new('less')
            end

            if @name.nil? || @name.strip.empty?
              print_usage
              exit(1)
            elsif object = find_object(@name)
              print_object(object)
            else
              STDERR.puts "No documentation for `#{@name}'"
              exit(1)
            end
          end