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