Skip to content
Myr

Fix version added and version changed in options docs. (#2957)

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

authored by Rowlando13 · committed by GitHub · parents a6cc378, 799413a · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/options.md+4 added-4 removed
150 unmodified lines
151(tuple-type)=152153## Multi Value Options as Tuples154155:::{versionadded} 4.0156:::155```{versionadded} 4.0156```157158As you can see that by using `nargs` set to a specific number each item in159the resulting tuple is of the same type. This might not be what you want.160Commonly you might want to use different types for different indexes in
127 unmodified lines
288 def log(debug):289 click.echo(f"debug={debug}")290```291292:::{versionchanged} 6.0293:::292```{versionchanged} 6.0293```294295If you want to define an alias for the second option only, then you will need to use leading whitespace to disambiguate the format string.296297```{eval-rst}
154 unmodified lines