aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-12-19 18:01:39 +1300
committerAldo Cortesi <aldo@corte.si>2017-12-20 08:21:48 +1300
commit3341edc9fa8e70306e91cf911e4b2b19ef60ba84 (patch)
tree6130b0c1053895f7eea6a1cc07252dbaee94b157 /mitmproxy/command.py
parentd98fc4f03a88751944c0ae08ee2ac3e743f92952 (diff)
downloadmitmproxy-3341edc9fa8e70306e91cf911e4b2b19ef60ba84.tar.gz
mitmproxy-3341edc9fa8e70306e91cf911e4b2b19ef60ba84.tar.bz2
mitmproxy-3341edc9fa8e70306e91cf911e4b2b19ef60ba84.zip
commander: highlight commands
Step 1 of the fancification of commander.
Diffstat (limited to 'mitmproxy/command.py')
-rw-r--r--mitmproxy/command.py5
1 files changed, 1 insertions, 4 deletions
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