module SimpleCov::CLI::Run

def run(args, stderr:, **)

def run(args, stderr:, **)
  cmd = args.first == "--" ? args.drop(1) : args
  if cmd.empty?
    stderr.puts("simplecov run: missing command")
    return 1
  end
  Kernel.exec(rubyopt_env, *cmd)
rescue Errno::ENOENT => e
  stderr.puts("simplecov run: #{e.message}")
  127
end