From d7ee5d8f85044c93f5982756f49be8315d148e4c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 20 Dec 2017 09:09:40 +1300 Subject: 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 --- mitmproxy/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mitmproxy/command.py') 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 -- cgit v1.2.3