Skip to content
Myr

clarify Parameter behavior when nargs=-1

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

authored by mattsb42 · committed by mattsb42 · parent 91e5bc3 · 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:click/core.py+2 added-1 removed
1379 unmodified lines
1380 2.0, the signature was ``(ctx, value)``.1381 :param nargs: the number of arguments to match. If not ``1`` the return1382 value is a tuple instead of single value. The default for1383 nargs is ``1`` (except if the type is a tuple, then it's1384 the arity of the tuple).1384 the arity of the tuple). If ``nargs=-1``, all remaining1385 parameters are collected.1386 :param metavar: how the value is represented in the help page.1387 :param expose_value: if this is `True` then the value is passed onwards1388 to the command callback and stored on the context,1389 otherwise it's skipped.
539 unmodified lines