[commands] Propagate invoked_with to subcommands.

This commit is contained in:
Rapptz committed 2016-01-09 12:24:01 -05:00
1 parent ec6b1997ad
commit b2e0632553
1 file changed
+1
+1
View File
@@ -391,6 +391,7 @@ class Group(GroupMixin, Command):
yield from self.callback(*ctx.args, **ctx.kwargs)
if ctx.invoked_subcommand:
ctx.invoked_with = trigger
yield from ctx.invoked_subcommand.invoke(ctx)
# Decorators