You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Lib/extractor/__init__.py
+45-16
Original file line number
Diff line number
Diff line change
@@ -84,28 +84,57 @@ def cmdline():
84
84
85
85
Usage: extractufo font [font ...]
86
86
"""
87
-
fromsysimportargv, exit
88
-
try:
89
-
fromufoLib2importFont
90
-
library="ufoLib2"
91
-
exceptImportError:
87
+
importos
88
+
fromsysimportexit
89
+
fromargparseimportArgumentParser
90
+
91
+
parser=ArgumentParser(
92
+
description="Extract data from font binaries and build UFO objects from them.",
93
+
epilog="Each resulting UFO will be saved as FONT_FILE.ufo(z) in the same directory as the original FONT_FILE. "
94
+
"If destination file or directory already exists, conversion for that source file will be skipped and the application exit code will indicate an error.",
95
+
)
96
+
parser.add_argument('FONT_FILE', help='Input font path', nargs="+")
0 commit comments