#!/usr/bin/env ruby
# frozen_string_literal: true

require "bitfab"

begin
  path, args = Bitfab::ReplayCommand.parse(ARGV)
  registry = Bitfab::ReplayCommand.load_registry(path)
  Bitfab::SeedCli.run(registry, argv: args)
rescue => error
  warn error.message
  exit 1
end
