Skip to content
Myr

Changed headline style

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 58a16f1 · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/complex.rst+2 added-2 removed
22 unmodified lines
23To understand how this works you need to understand two concepts: contexts24and the calling convention.2526Contexts27--------27````````2829Whenever a Click command is executed a :class:`Context` object is created30which holds state for this particular invocation. For instance it31remembers parsed parameters, what command created it, which resources need
11 unmodified lines
43Most of the time you don't see the context object, but when writing more44complex applications it comes in handy. This brings is to the next point4546Calling Convention47------------------47``````````````````4849When a Click command callback is executed it's passed all the non hidden50parameters as keyword arguments. Notably absent is the context. However51a callback can opt-into being passed the context object by marking itself
119 unmodified lines