class Byebug::Command
def format_subcmds
def format_subcmds cmd_name = names.join("|") s = "\n" \ "--\n" \ "List of \"#{cmd_name}\" subcommands:\n" \ "--\n" w = self::Subcommands.map(&:name).max_by(&:size).size for subcmd in self::Subcommands do s += sprintf "%s %-#{w}s -- %s\n", cmd_name, subcmd.name, subcmd.help end return s end