diff options
Diffstat (limited to 'mitmproxy/optmanager.py')
| -rw-r--r-- | mitmproxy/optmanager.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mitmproxy/optmanager.py b/mitmproxy/optmanager.py index 495354f4..86f833e4 100644 --- a/mitmproxy/optmanager.py +++ b/mitmproxy/optmanager.py @@ -36,7 +36,7 @@ class _Option: self.typespec = typespec self._default = default self.value = unset - self.help = help + self.help = textwrap.dedent(help or "").strip() self.choices = choices def __repr__(self): @@ -397,9 +397,7 @@ def dump_defaults(opts): txt += " Type %s." % t txt = "\n".join( - textwrap.wrap( - textwrap.dedent(txt) - ) + textwrap.wrap(txt) ) s.yaml_set_comment_before_after_key(k, before = "\n" + txt) return ruamel.yaml.round_trip_dump(s) |
