class Byebug::ShowCommand
Implements byebug “show” command.
def description
def description %{Generic command for showing things about byebug.} end
def execute
def execute return print ShowCommand.help(nil) unless @match[1] args = @match[1].split(/[ \t]+/) param = args.shift subcmd = Command.find(Subcommands, param) if subcmd print "%s\n" % show_setting(subcmd.name) else print "Unknown show command #{param}\n" end end
def names
def names %w(show) end
def regexp
def regexp /^\s* show (?:\s+(.+))? \s*$/x end