95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# File 'lib/ruby-debug-ide/commands/enable.rb', line 95
def help(args)
if args[1]
s = args[1]
subcmd = Subcommands.find do |try_subcmd|
(s.size >= try_subcmd.min) and
(try_subcmd.name[0..s.size-1] == s)
end
if subcmd
str = subcmd.short_help + '.'
str += "\n" + subcmd.long_help if subcmd.long_help
return str
else
return "Invalid 'enable' subcommand '#{args[1]}'."
end
end
s = %{
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
end
|