lib/command.rb in g2_command-2.4.0 vs lib/command.rb in g2_command-2.4.1

- old
+ new

@@ -36,11 +36,11 @@ end errors.empty? ? Success(result) : Failure(Command::Failure.new(result, errors)) end - def compose(command, **args) - outcome = command.run(**args) + def compose(command, *args) + outcome = command.run(*args) raise Command::Interrupt, outcome.failure.errors if outcome.failure? outcome.value! end