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