module Dry::CLI::Inline

def run(arguments: ARGV, out: $stdout)

Other tags:
    Since: - 0.6.0
def run(arguments: ARGV, out: $stdout)
  command = AnonymousCommand
  command.define_method(:call) do |**args|
    yield(**args)
  end
  Dry.CLI(command).call(arguments: arguments, out: out)
end