mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-27 18:42:20 +00:00
Use command summaries in completion descriptions
This commit is contained in:
@@ -1111,8 +1111,8 @@ function Parser:add_complete(value)
|
||||
end
|
||||
|
||||
local function get_short_description(element)
|
||||
local short = element._description:match("^(.-)%.%s")
|
||||
return short or element._description:match("^(.-)%.?$")
|
||||
local short = element:_get_description():match("^(.-)%.%s")
|
||||
return short or element:_get_description():match("^(.-)%.?$")
|
||||
end
|
||||
|
||||
local function get_options(parser)
|
||||
|
Reference in New Issue
Block a user