aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/concommands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/shared/concommands.lua')
-rw-r--r--gamemode/shared/concommands.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/gamemode/shared/concommands.lua b/gamemode/shared/concommands.lua
index 64d9a35..79ea0f3 100644
--- a/gamemode/shared/concommands.lua
+++ b/gamemode/shared/concommands.lua
@@ -1,11 +1,14 @@
---[[
- Various console command helper functions
-]]
+--- Concommand autocomplete helper.
+-- Helps you write console commands' autocomplete functions
+--@module concommands.lua
local fuzzel = nrequire("fuzzel.lua")
local concmd = {}
+--- Generate an autocomplete function.
+-- Generates an autocomplete function based on the strings passed in.
+-- The strings can be passed in as a list of arguments, or in an array.
function concmd.AutocompleteFunction(...)
local opt = {...}
opt = type(opt[1]) == "table" and opt[1] or opt