aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/optmanager.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-03-17 07:33:07 +1300
committerAldo Cortesi <aldo@corte.si>2017-03-19 10:32:22 +1300
commitbc67cee6870af7033e5741d8d21d5bd016dfd132 (patch)
tree7db702df35097dcafec1dc9611b67598199bb497 /mitmproxy/optmanager.py
parent39659c752884ae31ccc14bbe247f3918f97bab9c (diff)
downloadmitmproxy-bc67cee6870af7033e5741d8d21d5bd016dfd132.tar.gz
mitmproxy-bc67cee6870af7033e5741d8d21d5bd016dfd132.tar.bz2
mitmproxy-bc67cee6870af7033e5741d8d21d5bd016dfd132.zip
console: sketch out look and feel of the new Options editor
Diffstat (limited to 'mitmproxy/optmanager.py')
-rw-r--r--mitmproxy/optmanager.py6
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)