Skip to content
Myr

Merge pull request #1310 from jnpblrdrgz/1269_chained_command_doc_note_addition

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

Updated Multi Chaining commands docs to address options arguments order

authored by David Lord · committed by GitHub · parents 283400c, 028ed62 · 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