diff options
author | Miroslav <ttahabatt@gmail.com> | 2018-02-08 21:14:10 +0200 |
---|---|---|
committer | Miroslav <ttahabatt@gmail.com> | 2018-02-08 21:14:10 +0200 |
commit | e64947d3bc00375fcb80898f48add3593b787d24 (patch) | |
tree | 6c86e70dde8262a8352211cd62f4d2d7fb0ba164 | |
parent | 9f78c36ec447913dde9a0acd69683e856a843db4 (diff) | |
download | mitmproxy-e64947d3bc00375fcb80898f48add3593b787d24.tar.gz mitmproxy-e64947d3bc00375fcb80898f48add3593b787d24.tar.bz2 mitmproxy-e64947d3bc00375fcb80898f48add3593b787d24.zip |
Docs
-rw-r--r-- | mitmproxy/tools/console/consoleaddons.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py index affbf4d3..e4a7503c 100644 --- a/mitmproxy/tools/console/consoleaddons.py +++ b/mitmproxy/tools/console/consoleaddons.py @@ -279,11 +279,13 @@ class ConsoleAddon: @command.command("console.command.set") def console_command_set(self, option: str) -> None: - """Doc""" + """ + Prompt the user to set an option of the form "key[=value]". + """ option_value = getattr(self.master.options, option, None) current_value = option_value if option_value else "" self.master.commands.call( - "console.command set {}={}".format(option, current_value) + "console.command set %s=%s" % (option, current_value) ) @command.command("console.view.keybindings") |