lib/byebug/commands/enable.rb in byebug-1.8.1 vs lib/byebug/commands/enable.rb in byebug-1.8.2
- old
+ new
@@ -58,11 +58,11 @@
].map do |name, min, short_help, long_help|
SubcmdStruct.new(name, min, short_help, long_help)
end unless defined?(Subcommands)
def regexp
- /^\s* en(?:able)? (?:\s+(.*))?$/ix
+ /^\s* en(?:able)? (?:\s+(.+))? \s*$/ix
end
def execute
return errmsg "\"enable\" must be followed by \"display\", " \
"\"breakpoints\" or breakpoint numbers.\n" unless @match[1]
@@ -89,12 +89,14 @@
def names
%w(enable)
end
def description
- %{Enable some things.
- This is used to cancel the effect of the "disable" command.}
+ %{Enable breakpoints or displays.
+
+ This is used to cancel the effect of the "disable" command.
+ }
end
end
end
class DisableCommand < Command
@@ -110,11 +112,11 @@
].map do |name, min, short_help, long_help|
SubcmdStruct.new(name, min, short_help, long_help)
end unless defined?(Subcommands)
def regexp
- /^\s* dis(?:able)? (?:\s+(.*))?$/ix
+ /^\s* dis(?:able)? (?:\s+(.+))? \s*$/ix
end
def execute
return errmsg "\"disable\" must be followed by \"display\", " \
"\"breakpoints\" or breakpoint numbers.\n" unless @match[1]
@@ -141,13 +143,14 @@
def names
%w(disable)
end
def description
- %{Disable some things.
+ %{Disable breakpoints or displays.
A disabled item is not forgotten, but has no effect until reenabled.
- Use the "enable" command to have it take effect again.}
+ Use the "enable" command to have it take effect again.
+ }
end
end
end
end