mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Docs
This commit is contained in:
parent
9f78c36ec4
commit
e64947d3bc
@ -279,11 +279,13 @@ class ConsoleAddon:
|
|||||||
|
|
||||||
@command.command("console.command.set")
|
@command.command("console.command.set")
|
||||||
def console_command_set(self, option: str) -> None:
|
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)
|
option_value = getattr(self.master.options, option, None)
|
||||||
current_value = option_value if option_value else ""
|
current_value = option_value if option_value else ""
|
||||||
self.master.commands.call(
|
self.master.commands.call(
|
||||||
"console.command set {}={}".format(option, current_value)
|
"console.command set %s=%s" % (option, current_value)
|
||||||
)
|
)
|
||||||
|
|
||||||
@command.command("console.view.keybindings")
|
@command.command("console.view.keybindings")
|
||||||
|
Loading…
Reference in New Issue
Block a user