lib/byebug/commands/enable.rb in byebug-1.0.3 vs lib/byebug/commands/enable.rb in byebug-1.1.0

- old
+ new

@@ -103,21 +103,15 @@ str += '\n' + subcmd.long_help if subcmd.long_help return str end # general help - s = %{ + str = %{ Enable some things. This is used to cancel the effect of the "disable" command. - -- - List of enable subcommands: - -- } - for subcmd in Subcommands do - s += "enable #{subcmd.name} -- #{subcmd.short_help}\n" - end - return s + str += format_subcmds(Subcommands) end end end class DisableCommand < Command @@ -177,22 +171,16 @@ str += '\n' + subcmd.long_help if subcmd.long_help return str end # general help - s = %{ + str = %{ Disable some things. A disabled item is not forgotten, but has no effect until reenabled. Use the "enable" command to have it take effect again. - -- - List of disable subcommands: - -- } - for subcmd in Subcommands do - s += "disable #{subcmd.name} -- #{subcmd.short_help}\n" - end - return s + str += format_subcmds(Subcommads) end end end end # module Byebug