aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-12-20 09:09:40 +1300
committerAldo Cortesi <aldo@corte.si>2017-12-20 09:09:40 +1300
commitd7ee5d8f85044c93f5982756f49be8315d148e4c (patch)
treea7711babc31a37636de136d44ef6f359d9a00cc0 /mitmproxy/command.py
parent3341edc9fa8e70306e91cf911e4b2b19ef60ba84 (diff)
downloadmitmproxy-d7ee5d8f85044c93f5982756f49be8315d148e4c.tar.gz
mitmproxy-d7ee5d8f85044c93f5982756f49be8315d148e4c.tar.bz2
mitmproxy-d7ee5d8f85044c93f5982756f49be8315d148e4c.zip
commander: palette entries, highlight errors
- Add palette entries specific to commander - Highlight errors - Introduce an Unknown type to keep track of extra unknown arguments to commands
Diffstat (limited to 'mitmproxy/command.py')
-rw-r--r--mitmproxy/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/command.py b/mitmproxy/command.py
index e01c767c..e1e56d3a 100644
--- a/mitmproxy/command.py
+++ b/mitmproxy/command.py
@@ -172,7 +172,7 @@ class CommandManager(mitmproxy.types._CommandBase):
if parts[i] in self.commands:
params[:] = self.commands[parts[i]].paramtypes
else:
- typ = str
+ typ = mitmproxy.types.Unknown
to = mitmproxy.types.CommandTypes.get(typ, None)
valid = False