5 Commits

Author SHA1 Message Date
Cosimo Lupo
ba41877d10
Snippets/woff2_compress: add --hmtx-trasform option; use argparse 2019-06-13 18:07:14 +01:00
Cosimo Lupo
5d7e750b69
Snippets/woff2_compress: add --disable-transforms option 2019-06-11 15:13:09 +01:00
Cosimo Lupo
b7bb391033
don't use sys.exit(...) inside main(), but only under if __name__ == "__main__"
The convention is that sys.exit(...) is called only if a module is run as a script,
and that main() entry points use return statements to report exit codes: 0 (or None)
for successful execution, or any non-zero integer for errors.

E.g. see the console scripts generated when installing with pip.
2017-01-11 12:10:58 +00:00
Behdad Esfahbod
41dcb5a2cc Minor 2015-08-20 11:13:54 +01:00
Cosimo Lupo
2591a1075d [Snippets] add woff_compress.py and woff2_decompress.py sample scripts 2015-08-07 18:23:41 +01:00