fix doc for cmd_runner_fmt.as_bool() (#8971)
parent
c4e2b73193
commit
7fc7af306c
|
@ -186,8 +186,20 @@ In these descriptions ``value`` refers to the single parameter passed to the for
|
||||||
+------------+--------------------+
|
+------------+--------------------+
|
||||||
| ``False`` | ``[]`` |
|
| ``False`` | ``[]`` |
|
||||||
+------------+--------------------+
|
+------------+--------------------+
|
||||||
- Creation (two args):
|
- Creation (two args, ``None`` treated as ``False``):
|
||||||
``cmd_runner_fmt.as_bool("--relax", "--dont-do-it")``
|
``cmd_runner_fmt.as_bool("--relax", "--dont-do-it")``
|
||||||
|
- Examples:
|
||||||
|
+------------+----------------------+
|
||||||
|
| Value | Outcome |
|
||||||
|
+============+======================+
|
||||||
|
| ``True`` | ``["--relax"]`` |
|
||||||
|
+------------+----------------------+
|
||||||
|
| ``False`` | ``["--dont-do-it"]`` |
|
||||||
|
+------------+----------------------+
|
||||||
|
| | ``["--dont-do-it"]`` |
|
||||||
|
+------------+----------------------+
|
||||||
|
- Creation (two args, ``None`` is ignored):
|
||||||
|
``cmd_runner_fmt.as_bool("--relax", "--dont-do-it", ignore_none=True)``
|
||||||
- Examples:
|
- Examples:
|
||||||
+------------+----------------------+
|
+------------+----------------------+
|
||||||
| Value | Outcome |
|
| Value | Outcome |
|
||||||
|
|
Loading…
Reference in New Issue