This commit is contained in:
Miroslav 2018-02-08 21:14:10 +02:00
parent 9f78c36ec4
commit e64947d3bc

View File

@ -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")