Fix --help showing qu2cu.qu2cu
This commit is contained in:
parent
70b5456387
commit
fbe2dc846c
@ -20,7 +20,8 @@ def main():
|
|||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
description = imports.main.__doc__
|
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__", "")
|
pkg = pkg.replace("fontTools.", "").replace(".__main__", "")
|
||||||
# show the docstring's first line only
|
# show the docstring's first line only
|
||||||
descriptions[pkg] = description.splitlines()[0]
|
descriptions[pkg] = description.splitlines()[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user