Merge remote-tracking branches 'TymurGubayev/patch-2' and 'TymurGubayev/patch-3' into develop

develop
lethosor 2021-08-21 11:30:36 -04:00
commit d4e40b260e
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
2 changed files with 2 additions and 2 deletions

@ -50,7 +50,7 @@ local function get_opt_map(opts)
local len = #opts local len = #opts
local options = {} local options = {}
for short_opt, accept_arg in opts:gmatch('(%w)(:?)') do for short_opt, accept_arg in opts:gmatch('([%w%?])(:?)') do
options[short_opt] = #accept_arg options[short_opt] = #accept_arg
end end

@ -79,7 +79,7 @@ end
-- shortOptionName and handler are required. If the option takes an argument, -- shortOptionName and handler are required. If the option takes an argument,
-- it will be passed to the handler function. -- it will be passed to the handler function.
-- longOptionAlias is optional. -- longOptionAlias is optional.
-- hasArgument defaults to false. -- hasArg defaults to false.
-- --
-- example usage: -- example usage:
-- --