aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav <ttahabatt@gmail.com>2018-02-19 00:14:42 +0200
committerMiroslav <ttahabatt@gmail.com>2018-02-19 00:14:42 +0200
commite2b7abb89825ed57cd35553bade766dfde9fcbda (patch)
treee25f6296902ef31b8e58829a09ad2571d59eea4e
parent93425d4b1aaab2d96ff001fee2997be1a51e7c17 (diff)
downloadmitmproxy-e2b7abb89825ed57cd35553bade766dfde9fcbda.tar.gz
mitmproxy-e2b7abb89825ed57cd35553bade766dfde9fcbda.tar.bz2
mitmproxy-e2b7abb89825ed57cd35553bade766dfde9fcbda.zip
Fix a bug with two-words contentview modes
-rw-r--r--mitmproxy/tools/console/consoleaddons.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py
index 03f2e240..e7cd40e7 100644
--- a/mitmproxy/tools/console/consoleaddons.py
+++ b/mitmproxy/tools/console/consoleaddons.py
@@ -498,10 +498,11 @@ class ConsoleAddon:
@command.command("console.flowview.mode.set")
@command.argument("mode", type=mitmproxy.types.Choice("console.flowview.mode.options"))
- def flowview_mode_set(self, mode: str) -> None:
+ def flowview_mode_set(self, *mode: str) -> None:
"""
Set the display mode for the current flow view.
"""
+ mode = " ".join(mode)
fv = self.master.window.current_window("flowview")
if not fv:
raise exceptions.CommandError("Not viewing a flow.")