We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26feea4 commit 3922fb9Copy full SHA for 3922fb9
src/base_flags.lua
@@ -20,6 +20,10 @@ end
20
21
22
luargv.get_flag_args = function(flags)
23
+ if luargv.type(flags) == "string" then
24
+ flags = { flags }
25
+ end
26
+
27
local args_size = luargv.get_total_args_size()
28
local founds = {}
29
local founds_size = 0
@@ -62,6 +66,9 @@ luargv.flags_exist = function(flags)
62
66
end
63
67
64
68
luargv.get_first_flag_value_or_default = function(flags, default)
69
70
71
65
72
local flags, size = luargv.get_flag_args(flags)
73
if size == 0 then
74
return default
0 commit comments