You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---@fieldargsliststring[] Complete list of command-line arguments
7
+
---@fieldused_argsnumber[] Indices of arguments that have been used
8
+
---@fieldflag_identifiersstring[] Identifiers recognized as flags (e.g., {"-", "--"})
9
+
---
10
+
---@fieldget_flag_sizefun(flags:string[]|string):number Returns the number of values associated with a flag
11
+
---@fieldget_flag_arg_by_indexfun(flags:string[]|string,index:number,default:string|nil):string|nil Returns the flag value by index
12
+
---@fieldflags_existfun(flags:string[]):boolean Checks if any of the flags exist
13
+
---@fieldget_flag_size_consider_only_firstfun(flags:string[]|string):number Returns the number of occurrences considering only the first flag
14
+
---@fieldget_flag_arg_by_index_consider_only_firstfun(flags:string[]|string,index:number,default:string|nil):string|nil Returns the argument for the first occurrence of the flag
15
+
---@fieldone_of_args_existfun(arg:string[]|string):boolean Checks if one of the arguments exists
16
+
---@fieldget_total_args_sizefun():number Returns the total number of arguments
17
+
---@fieldget_arg_by_indexfun(index:number):string|nil Returns argument by index
18
+
---@fieldget_arg_by_index_not_adding_to_usedfun(index:number):string Returns argument without marking it as used
19
+
---@fieldget_compact_flagsfun(flags:string[]|string,index:number,default:string|nil):string|nil Gets values of compact flags (e.g., -abc)
20
+
---@fieldget_compact_flags_sizefun(flags:string[]|string):number Returns the number of compact flags
21
+
---@fieldadd_used_args_by_indexfun(used_flag:number) Marks an argument as used
22
+
---@fieldget_total_unused_argsfun():number Returns the number of unused arguments
23
+
---@fieldget_unsed_arg_by_indexfun(index:number):string|nil Returns unused argument by index
24
+
---@fieldget_next_unused_indexfun():number|nil Returns the index of the next unused argument
25
+
---@fieldget_next_unusedfun():string|nil Returns the next unused argument
26
+
---@fieldtypefun(value:any):string Returns the type of a value
27
+
---@fieldsubstr_funcfun(str:string,start:number,endnum:number):string Returns a substring of a string
28
+
---@fieldget_str_sizefun(str:string):number Returns the length of a string
29
+
30
+
---@typeArgv
31
+
luargv=luargv
32
+
33
+
34
+
-- ############################################
35
+
-- Main interface
36
+
-- ############################################
37
+
38
+
---@classLuaArgvModule
39
+
---@fieldargvArgv Public API to handle command-line arguments
0 commit comments