class Byebug::HistoryCommand
def description
def description %{hist[ory] [num_cmds]\t\tShow byebug's command history} end
def execute
def execute if Byebug::Setting[:autosave] if arg = @match[:num_cmds] size = get_int(arg, 'history', 1, Byebug::Setting[:histsize]) end print Byebug::History.to_s(size || Byebug::Setting[:histsize]) else errmsg "Not currently saving history. Enable it with \"set autosave\"\n" end end
def names
def names %w(history) end
def regexp
def regexp /^\s* hist(?:ory)? (?:\s+(?<num_cmds>.+))? \s*$/x end