lib/hanami/cli.rb in hanami-cli-0.2.0.beta1 vs lib/hanami/cli.rb in hanami-cli-0.2.0.beta2
- old
+ new
@@ -51,12 +51,12 @@
result = commands.get(arguments)
if result.found?
command, args = parse(result, out)
- result.before_callbacks.run(self, args)
+ result.before_callbacks.run(command, args)
command.call(args)
- result.after_callbacks.run(self, args)
+ result.after_callbacks.run(command, args)
else
usage(result, out)
end
end