Click Documentation
Release 4.2.dev0Custom parameter validation example • colors: Colorama ANSI color support • termui: Terminal UI functions demo • imagepipe: Multi command chaining demo 1.2.3 Basic Concepts Click is based on declaring command() @click.option('--hash-type', type=click.Choice(['md5', 'sha1'])) def digest(hash_type): click.echo(hash_type) What it looks like: $ digest --hash-type=md5 md5 $ digest --hash-type=foo Usage: digest digest [OPTIONS] Error: Invalid value for "--hash-type": invalid choice: foo. (choose from md5, sha1) $ digest --help Usage: digest [OPTIONS] Options: --hash-type [md5|sha1] --help Show this message and0 码力 | 101 页 | 407.32 KB | 1 年前3
Debian GNU/Linux 安装手册
January 8, 2024passwd/root-password-again password r00tme # or encrypted using a crypt(3) hash. #d-i passwd/root-password-crypted password [crypt(3) hash] # To create a normal user account. #d-i passwd/user-fullname string passwd/user-password-again password insecure # or encrypted using a crypt(3) hash. #d-i passwd/user-password-crypted password [crypt(3) hash] # Create the first user with the specified UID instead of the default0 码力 | 93 页 | 562.93 KB | 1 年前3
PlantUML 1.2019.9 Guide de référence du langageURL, so you don't need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have Function names must start with a $ • Argument names must start with a $ • Void functions can call other void functions Example: @startuml !function msg($source, $destination) $source --> $destination langage PlantUML (1.2019.9) 148 / 173 19.5 Return function 19 PREPROCESSING Variables defined in functions are local. It means that the variable is destroyed when the function ends. 19.5 Return function0 码力 | 174 页 | 1.93 MB | 1 年前3
Flask-RESTful Documentation Release 0.3.10cannot be converted to int'} The inputs module provides a number of included common conversion functions such as inputs.date() and inputs.url(). Calling parse_args with strict=True ensures that an error make_response(json.dumps(data), code) resp.headers.extend(headers or {}) return resp These representation functions must return a Flask Response [https://flask.palletsprojects.com/en/2.3.x/api/#flask.Response] object ') def output_csv(data, code, headers=None): pass # implement csv output! These output functions take three parameters, data, code, and headers data is the object you return from your resource0 码力 | 42 页 | 84.60 KB | 1 年前3
PlantUML 1.2020.22 Guide de référence du langageURL, so you don't need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have Boolean builtin functions [%false(), %true(), %not()] For convenience, you can use those boolean builtin functions: • %false() • %true() • %not( ) [See also Builtin functions] 20.4 Conditions function that you can call: • directly in variable definition or in diagram text • from other return functions • from procedures • Function name should start with a $ • Argument names should start with a 0 码力 | 295 页 | 3.03 MB | 1 年前3
PlantUML 1.2020.23 Guide de référence du langageURL, so you don't need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have Boolean builtin functions [%false(), %true(), %not()] For convenience, you can use those boolean builtin functions: • %false() • %true() • %not( ) [See also Builtin functions] 20.4 Conditions function that you can call: • directly in variable definition or in diagram text • from other return functions • from procedures • Function name should start with a $ • Argument names should start with a 0 码力 | 308 页 | 3.12 MB | 1 年前3
PlantUML 1.2019.6 Guide de référence du langageURL, so you don't need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have created outside function are global, that is you can access to them from everywhere (including from functions). You can emphasize this by using the optional global keyword when defining a variable. @startuml Function name should start by a $ • Argument names should start by a $ • Void functions can call other void functions Example: @startuml !function msg($source, $destination) $source --> $destination0 码力 | 174 页 | 1.91 MB | 1 年前3
PlantUML 1.2021.1 Guide de référence du langageURL, so you don’t need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize this by using the optional global keyword when defining a variable. @startuml Boolean builtin functions [%false(), %true(), %not()] For convenience, you can use those boolean builtin functions: • %false() • %true() • %not( ) [See also Builtin functions] 24.4 Conditions 0 码力 | 385 页 | 4.05 MB | 1 年前3
PlantUML 1.2021.2 Guide de référence du langageURL, so you don’t need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize this by using the optional global keyword when defining a variable. @startuml Boolean builtin functions [%false(), %true(), %not()] For convenience, you can use those boolean builtin functions: • %false() • %true() • %not( ) [See also Builtin functions] 25.4 Conditions 0 码力 | 391 页 | 4.10 MB | 1 年前3
PlantUML 1.2021.3 Guide de référence du langageURL, so you don’t need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize this by using the optional global keyword when defining a variable. @startuml Boolean builtin functions [%false(), %true(), %not()] For convenience, you can use those boolean builtin functions: • %false() • %true() • %not( ) [See also Builtin functions] 25.4 Conditions 0 码力 | 406 页 | 4.24 MB | 1 年前3
共 13 条
- 1
- 2













