@ -50,7 +50,7 @@ local function get_opt_map(opts)
local len = #opts
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
end
@ -79,7 +79,7 @@ end
-- shortOptionName and handler are required. If the option takes an argument,
-- it will be passed to the handler function.
-- longOptionAlias is optional.
-- hasArgument defaults to false.
-- hasArg defaults to false.
--
-- example usage: