Added options class variable to CmdOption, CmdQuit
docstring Switch is plural for multiple Switches
This commit is contained in:
parent
d3a0c70945
commit
e939ae8424
1 changed files with 3 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ class CmdOption(COMMAND_DEFAULT_CLASS):
|
||||||
Usage:
|
Usage:
|
||||||
@option[/save] [name = value]
|
@option[/save] [name = value]
|
||||||
|
|
||||||
Switch:
|
Switches:
|
||||||
save - Save the current option settings for future logins.
|
save - Save the current option settings for future logins.
|
||||||
clear - Clear the saved options.
|
clear - Clear the saved options.
|
||||||
|
|
||||||
|
|
@ -467,6 +467,7 @@ class CmdOption(COMMAND_DEFAULT_CLASS):
|
||||||
"""
|
"""
|
||||||
key = "@option"
|
key = "@option"
|
||||||
aliases = "@options"
|
aliases = "@options"
|
||||||
|
options = ("save", "clear")
|
||||||
locks = "cmd:all()"
|
locks = "cmd:all()"
|
||||||
|
|
||||||
# this is used by the parent
|
# this is used by the parent
|
||||||
|
|
@ -650,6 +651,7 @@ class CmdQuit(COMMAND_DEFAULT_CLASS):
|
||||||
game. Use the /all switch to disconnect from all sessions.
|
game. Use the /all switch to disconnect from all sessions.
|
||||||
"""
|
"""
|
||||||
key = "@quit"
|
key = "@quit"
|
||||||
|
options = ("all",)
|
||||||
locks = "cmd:all()"
|
locks = "cmd:all()"
|
||||||
|
|
||||||
# this is used by the parent
|
# this is used by the parent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue