lib/byebug/commands/enable.rb in byebug-2.2.2 vs lib/byebug/commands/enable.rb in byebug-2.3.0
- old
+ new
@@ -42,23 +42,22 @@
end
end
end
class EnableCommand < Command
- Subcommands =
- [
- ['breakpoints', 2, 'Enable breakpoints',
- 'This is used to cancel the effect of the "disable" command. Give ' \
- 'breakpoint numbers (separated by spaces) as arguments or no ' \
- 'argument at all if you want to reenable every breakpoint'],
- ['display', 2,
- 'Enable some expressions to be displayed when program stops',
- 'Arguments are the code numbers of the expressions to resume ' \
- 'displaying. Do "info display" to see the current list of code ' \
- 'numbers.'],
- ].map do |name, min, short_help, long_help|
- Subcmd.new(name, min, short_help, long_help)
+ Subcommands = [
+ ['breakpoints', 2, 'Enable breakpoints. This is used to cancel the ' \
+ 'effect of the "disable" command. Give breakpoint' \
+ ' numbers (separated by spaces) as arguments or ' \
+ 'no argument at all if you want to reenable ' \
+ 'every breakpoint' ],
+ ['display' , 2, 'Enable some expressions to be displayed when ' \
+ 'program stops. Arguments are the code numbers of' \
+ ' the expressions to resume displaying. Do "info ' \
+ 'display" to see the current list of code numbers' ]
+ ].map do |name, min, help|
+ Subcmd.new(name, min, help)
end unless defined?(Subcommands)
def regexp
/^\s* en(?:able)? (?:\s+(.+))? \s*$/x
end
@@ -97,22 +96,21 @@
end
end
end
class DisableCommand < Command
- Subcommands =
- [
- ['breakpoints', 1, 'Disable breakpoints',
- 'A disabled breakpoint is not forgotten, but has no effect until ' \
- 'reenabled. Give breakpoint numbers (separated by spaces) as ' \
- 'arguments or no argument at all if you want to disable every ' \
- 'breakpoint'],
- ['display', 1, 'Disable some display expressions when program stops',
- 'Arguments are the code numbers of the expressions to stop ' \
- 'displaying. Do "info display" to see the current list of code ' \
- 'numbers.'],
- ].map do |name, min, short_help, long_help|
- Subcmd.new(name, min, short_help, long_help)
+ Subcommands = [
+ ['breakpoints', 1, 'Disable breakpoints. A disabled breakpoint is ' \
+ 'not forgotten, but has no effect until ' \
+ 'reenabled. Give breakpoint numbers (separated by' \
+ 'spaces) as arguments or no argument at all if ' \
+ 'you want to disable every breakpoint' ],
+ ['display' , 1, 'Disable some display expressions when program ' \
+ 'stops. Arguments are the code numbers of the ' \
+ 'expressions to stop displaying. Do "info ' \
+ 'display" to see the current list of code numbers.' ]
+ ].map do |name, min, help|
+ Subcmd.new(name, min, help)
end unless defined?(Subcommands)
def regexp
/^\s* dis(?:able)? (?:\s+(.+))? \s*$/x
end