mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-30 03:52:19 +00:00
Custom target should not affect usage and help message generation
This commit is contained in:
@@ -306,7 +306,7 @@ function Argument:_get_default_argname()
|
||||
end
|
||||
|
||||
function Option:_get_default_argname()
|
||||
return "<" .. (self._target or self:_get_default_target()) .. ">"
|
||||
return "<" .. self:_get_default_target() .. ">"
|
||||
end
|
||||
|
||||
-- Returns label to be shown in the help message.
|
||||
|
Reference in New Issue
Block a user