mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 902002 - Don't display mach categories in help if no commands exist under them, r=gps, DONTBUILD, a=NPOTB
This commit is contained in:
parent
a49a17302a
commit
d8d2af0f2f
@ -148,6 +148,9 @@ class CommandAction(argparse.Action):
|
||||
cats = [(k, v[2]) for k, v in r.categories.items()]
|
||||
sorted_cats = sorted(cats, key=itemgetter(1), reverse=True)
|
||||
for category, priority in sorted_cats:
|
||||
if not r.commands_by_category[category]:
|
||||
continue
|
||||
|
||||
title, description, _priority = r.categories[category]
|
||||
|
||||
group = parser.add_argument_group(title, description)
|
||||
|
Loading…
Reference in New Issue
Block a user