From 38a05e947d041f8b9c42e49eb075b972a7e9355c Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 7 Nov 2017 00:07:35 -0500 Subject: Added luadocs for shared libraries Started working on documentation --- gamemode/shared/concommands.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gamemode/shared/concommands.lua') 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 -- cgit v1.2.3-70-g09d2