diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py index affbf4d39..e4a7503cb 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")