class Byebug::ShowCommand
Show byebug settings.
def description
def description prettify <<-EOD show <setting> <value> Generic command for showing byebug settings. You can change them with the "set" command. EOD end
def execute
def execute key = @match[:setting] return puts(self.class.help) if key.nil? setting = Setting.find(key) return errmsg(pr('show.errors.unknown_setting', key: key)) unless setting puts Setting.settings[setting.to_sym] end
def help(subcmd = nil)
def help(subcmd = nil) Setting.help('show', subcmd) end
def names
def names %w(show) end
def regexp
def regexp /^\s* show (?:\s+(?<setting>\w+))? \s*$/x end