Fix --help showing qu2cu.qu2cu

This commit is contained in:
Behdad Esfahbod 2024-04-30 13:22:02 -06:00
parent 70b5456387
commit fbe2dc846c

View File

@ -20,7 +20,8 @@ def main():
continue
try:
description = imports.main.__doc__
if description:
# Cython modules seem to return "main()" as the docstring
if description and description != "main()":
pkg = pkg.replace("fontTools.", "").replace(".__main__", "")
# show the docstring's first line only
descriptions[pkg] = description.splitlines()[0]