class Byebug::FinishCommand

def execute

def execute
  if @match[1]
    n_frames, err = get_int(@match[1], "finish", 0, max_frames - 1)
    return errmsg(err) unless n_frames
  else
    n_frames = 1
  end
  force = n_frames.zero? ? true : false
  context.step_out(context.frame.pos + n_frames, force)
  context.frame = 0
  processor.proceed!
end