mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-30 03:52:19 +00:00
Replace - with _ in default target
This commit is contained in:
@@ -783,7 +783,7 @@ function Parser:_parse(args, errhandler)
|
||||
end
|
||||
|
||||
local type_ = option:_get_type()
|
||||
targets[option] = option:_get_target()
|
||||
targets[option] = option:_get_target():gsub("-", "_")
|
||||
|
||||
if type_ == "counter" then
|
||||
result[targets[option]] = 0
|
||||
|
Reference in New Issue
Block a user