diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-08-22 09:10:21 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-08-22 09:10:21 +0200 |
commit | 5fc29baf75897d594fe06ba085955d8068e22554 (patch) | |
tree | 0e5b2d9ccb5ba0884525be01ab13b455abddd4bd /docs/commands.rst | |
parent | 04f795c3c726737a2fcecc8c65bd36a00a6d04ea (diff) | |
download | click-5fc29baf75897d594fe06ba085955d8068e22554.tar.gz |
Fixed `invoked_subcommand`.
This is actually a very painful commit to make because it has to
change behavior. On the bright side, this has actually been
broken from 3.1 and people have not noticed much yet, so maybe
it's not a big deal. The docs also kinda left out the invoked
subcommands bit so I presume it is fine.
This fixes #205
Diffstat (limited to 'docs/commands.rst')
-rw-r--r-- | docs/commands.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/commands.rst b/docs/commands.rst index 3cd9337..1b59e6a 100644 --- a/docs/commands.rst +++ b/docs/commands.rst @@ -315,9 +315,9 @@ normal. Another note: the :attr:`Context.invoked_subcommand` attribute is a bit useless for multi commands as it will give ``'*'`` as value if more than -one command is invoked. Instead you should be using the -:attr:`Context.invoked_subcommands` attribute instead which is a list -(note the trailing "s"). +one command is invoked. This is necessary because the handling of +subcommands happens one after another so the exact subcommands that will +be handled are not yet available when the callback fires. Multi Command Pipelines |