Skip to content

Commit

Permalink
fix doc for cmd_runner_fmt.as_bool() (#8971)
Browse files Browse the repository at this point in the history
  • Loading branch information
russoz authored Oct 3, 2024
1 parent c4e2b73 commit 7fc7af3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/docsite/rst/guide_cmdrunner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,20 @@ In these descriptions ``value`` refers to the single parameter passed to the for
+------------+--------------------+
| ``False`` | ``[]`` |
+------------+--------------------+
- Creation (two args):
- Creation (two args, ``None`` treated as ``False``):
``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:
+------------+----------------------+
| Value | Outcome |
Expand Down

0 comments on commit 7fc7af3

Please sign in to comment.