lib/byebug/commands/catchpoint.rb in byebug-1.8.1 vs lib/byebug/commands/catchpoint.rb in byebug-1.8.2

- old
+ new

@@ -2,13 +2,11 @@ class CatchCommand < Command self.allow_in_control = true def regexp - /^\s* cat(?:ch)? - (?:\s+ (\S+))? - (?:\s+ (off))? \s* $/ix + /^\s* cat(?:ch)? (?:\s+(\S+))? (?:\s+(off))? \s*$/ix end def execute excn = @match[1] return info_catch unless excn @@ -37,14 +35,12 @@ def names %w(catch) end def description - %{cat[ch]\t\tsame as "info catch" - cat[ch] <exception-name> [on|off] - \tIntercept <exception-name> when there would otherwise be no handler. - \tWith an "on" or "off", turn handling the exception on or off. - cat[ch] off\tdelete all catchpoints} + %{cat[ch]\t\t\t\tLists catchpoints + cat[ch] off\t\t\tDeletes all catchpoints + cat[ch] <exception> [off]\tEnable/disable handling <exception>.} end end end end