get_int (Debugger::ParseFunctions)

    # File cli/ruby-debug/helper.rb, line 9
        def get_int(str, cmd, min=nil, max=nil, default=1)
          return default unless str
          begin
            int = Integer(str)
            if min and int < min
              print "%s argument '%s' needs to at least %s.\n" % [cmd, str, min]
              return nil
            elsif max and int > max
              print "%s argument '%s' needs to at most %s.\n" % [cmd, str, max]
              return nil
            end
            return int
          rescue
            print "%s argument '%s' needs to be a number.\n" % [cmd, str]
            return nil
          end
        end