get_version
Prints the version information for Python, Flask, and Werkzeug to the console and exits the program.
def get_version(
ctx: click.Context,
param: click.Parameter,
value: t.Any
) - > None
Prints the current versions of Python, Flask, and Werkzeug to the standard output and exits the application.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | click.Context | The Click context object used to determine color settings and handle the exit signal. |
| param | click.Parameter | The Click parameter object associated with the version flag. |
| value | t.Any | The value of the parameter; if falsey, the function returns immediately without printing. |
Returns
| Type | Description |
|---|---|
None | Nothing; the function terminates the process after printing version information. |