From 3341edc9fa8e70306e91cf911e4b2b19ef60ba84 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 19 Dec 2017 18:01:39 +1300 Subject: commander: highlight commands Step 1 of the fancification of commander. --- mitmproxy/command.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mitmproxy/command.py') diff --git a/mitmproxy/command.py b/mitmproxy/command.py index d813568f..e01c767c 100644 --- a/mitmproxy/command.py +++ b/mitmproxy/command.py @@ -192,12 +192,9 @@ class CommandManager(mitmproxy.types._CommandBase): ) ) - remhelp = [] + remhelp = [] # type: typing.List[str] for x in params: remt = mitmproxy.types.CommandTypes.get(x, None) - if not x: - remhelp = [] - break remhelp.append(remt.display) return parse, remhelp -- cgit v1.2.3