Skip to content

Commit

Permalink
docs: correctly format code block (#5749)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks authored Apr 29, 2022
1 parent 9e959e5 commit 5eeca6c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/tiltfile/api/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ def define_bool(name: str, args: bool=False, usage: str="") -> None:
dict returned by :meth:`parse`.
For instance, at runtime, to set a flag of this type named `foo` to value `True`, run ``tilt up -- --foo``.
To set a value to ``False``, you can run ``tilt up -- --foo=False``, or use a default value, e.g.:
```python
config.define_bool('foo')
cfg = config.parse()
do_stuff = cfg.get('foo', False)
```
To set a value to ``False``, you can run ``tilt up -- --foo=False``, or use a default value, e.g.::
config.define_bool('foo')
cfg = config.parse()
do_stuff = cfg.get('foo', False)
See the `Tiltfile config documentation <tiltfile_config.html>`_ for examples
and more information.
Expand Down

0 comments on commit 5eeca6c

Please sign in to comment.