This adds a `help` verb (and `--help` option) to the `fonttools` command line tool. Submodules will be listed in the help text if they have an importable `main` function with a docstring, and `main`'s docstring will be used as the one-line description for the help text.
7 lines
92 B
Python
7 lines
92 B
Python
import sys
|
|
from fontTools.varLib import main
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|