summaryrefslogtreecommitdiff
path: root/builtin/common
diff options
context:
space:
mode:
authorEzhh <owlecho@live.com>2017-06-15 21:38:41 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-15 22:38:41 +0200
commit2ab09bb48659c60e5dab19c3380a245e3eb19a17 (patch)
treec19c1efcb805fd8d7da5c1abe1f7d5b31c324262 /builtin/common
parentf55816f93a8d80371878a5292f4f432e90dcc582 (diff)
downloadminetest-2ab09bb48659c60e5dab19c3380a245e3eb19a17.tar.gz
minetest-2ab09bb48659c60e5dab19c3380a245e3eb19a17.tar.bz2
minetest-2ab09bb48659c60e5dab19c3380a245e3eb19a17.zip
Improve chatcommand params consistency (#5985)
* Fix and improve params consistency * Move parenthesis requirement to descriptions
Diffstat (limited to 'builtin/common')
-rw-r--r--builtin/common/chatcommands.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/common/chatcommands.lua b/builtin/common/chatcommands.lua
index e8955c6b4..52edda659 100644
--- a/builtin/common/chatcommands.lua
+++ b/builtin/common/chatcommands.lua
@@ -97,7 +97,7 @@ end
if INIT == "client" then
core.register_chatcommand("help", {
- params = gettext("[all/<cmd>]"),
+ params = gettext("[all | <cmd>]"),
description = gettext("Get help for commands"),
func = function(param)
return do_help_cmd(nil, param)
@@ -105,7 +105,7 @@ if INIT == "client" then
})
else
core.register_chatcommand("help", {
- params = "[all/privs/<cmd>]",
+ params = "[all | privs | <cmd>]",
description = "Get help for commands or list privileges",
func = do_help_cmd,
})