module Byebug::ThreadFunctions
def parse_thread_num_for_cmd(subcmd, arg)
def parse_thread_num_for_cmd(subcmd, arg) c, err = parse_thread_num(subcmd, arg) case when err [c, err] when c.nil? [nil, pr('thread.errors.no_thread')] when @state.context == c [c, pr('thread.errors.current_thread')] when c.ignored? [c, pr('thread.errors.wrong_action', subcmd: subcmd, arg: arg)] else [c, nil] end end