Skip to content
Myr

Updated Multi Chaining commands to address options arguments order

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Juan Rodriguez · committed by jacrotts · parent ec6f110 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:docs/commands.rst+2 added-1 removed
315 unmodified lines
316When using multi command chaining you can only have one command (the last)317use ``nargs=-1`` on an argument. It is also not possible to nest multi318commands below chained multicommands. Other than that there are no319restrictions on how they work. They can accept options and arguments as320normal.320normal. The order between options and arguments is limited for chained321commands. Currently only ``--options argument`` order is allowed.322323Another note: the :attr:`Context.invoked_subcommand` attribute is a bit324useless for multi commands as it will give ``'*'`` as value if more than325one command is invoked. This is necessary because the handling of
238 unmodified lines