From 5eeca6cb18044288dfe7662a62e6de49e59ffcc4 Mon Sep 17 00:00:00 2001 From: Nick Santos Date: Fri, 29 Apr 2022 12:34:12 -0400 Subject: [PATCH] docs: correctly format code block (#5749) fixes https://github.com/tilt-dev/tilt.build/issues/1096 --- internal/tiltfile/api/config/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/internal/tiltfile/api/config/__init__.py b/internal/tiltfile/api/config/__init__.py index b2a6cca488..adebbe4487 100644 --- a/internal/tiltfile/api/config/__init__.py +++ b/internal/tiltfile/api/config/__init__.py @@ -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 `_ for examples and more information.