create_manpage_completions: Output "-d", not "--description"

We typically use "-d" because it's shorter.
This commit is contained in:
Fabian Homborg 2020-04-25 11:24:08 +02:00
parent 5ca527b2fe
commit fd90482c19

View file

@ -132,7 +132,7 @@ def output_complete_command(cmdname, args, description, output_list):
comps = ["complete -c", cmdname]
comps.extend(args)
if description:
comps.append("--description")
comps.append("-d")
comps.append(description)
output_list.append(lossy_unicode(" ").join([lossy_unicode(c) for c in comps]))