From 8cd21defca49b991e36e8db6d62e9254eb2131be Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Fri, 2 Mar 2018 07:31:33 -0500 Subject: [PATCH] Adds class var options to some system commands CmdPy, CmdScripts, CmdService, CmdServerLoad and plural of Switch is Switches in docstring --- evennia/commands/default/system.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/evennia/commands/default/system.py b/evennia/commands/default/system.py index 7bd092bad5..e4d6242a56 100644 --- a/evennia/commands/default/system.py +++ b/evennia/commands/default/system.py @@ -245,6 +245,7 @@ class CmdPy(COMMAND_DEFAULT_CLASS): """ key = "@py" aliases = ["!"] + options = ("time", "edit") locks = "cmd:perm(py) or perm(Developer)" help_category = "System" @@ -328,6 +329,7 @@ class CmdScripts(COMMAND_DEFAULT_CLASS): """ key = "@scripts" aliases = ["@globalscript", "@listscripts"] + options = ("start", "stop", "kill", "validate") locks = "cmd:perm(listscripts) or perm(Admin)" help_category = "System" @@ -521,6 +523,7 @@ class CmdService(COMMAND_DEFAULT_CLASS): key = "@service" aliases = ["@services"] + options = ("list", "start", "stop", "delete") locks = "cmd:perm(service) or perm(Developer)" help_category = "System" @@ -672,7 +675,7 @@ class CmdServerLoad(COMMAND_DEFAULT_CLASS): Usage: @server[/mem] - Switch: + Switches: mem - return only a string of the current memory usage flushmem - flush the idmapper cache @@ -703,6 +706,7 @@ class CmdServerLoad(COMMAND_DEFAULT_CLASS): """ key = "@server" aliases = ["@serverload", "@serverprocess"] + options = ("mem", "flushmem") locks = "cmd:perm(list) or perm(Developer)" help_category = "System"