File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ def run(argv):
19
19
# ===========================================================
20
20
# argparse command line argument definitions
21
21
# ===========================================================
22
- parser = argparse .ArgumentParser (description = "An OpenType table diff tool for fonts." )
22
+ parser = argparse .ArgumentParser (
23
+ description = "An OpenType table diff tool for fonts."
24
+ )
23
25
parser .add_argument (
24
26
"--version" , action = "version" , version = "fdiff v{}" .format (__version__ )
25
27
)
@@ -38,6 +40,10 @@ def run(argv):
38
40
39
41
args = parser .parse_args (argv )
40
42
43
+ #
44
+ # File path argument validations
45
+ #
46
+
41
47
if not file_exists (args .PREFILE ):
42
48
sys .stderr .write (
43
49
f"[*] ERROR: The file path '{ args .PREFILE } ' can not be found.{ os .linesep } "
@@ -49,6 +55,10 @@ def run(argv):
49
55
)
50
56
sys .exit (1 )
51
57
58
+ #
59
+ # Unified diff logic
60
+ #
61
+
52
62
try :
53
63
diff = u_diff (args .PREFILE , args .POSTFILE , context_lines = args .lines )
54
64
except Exception as e :
You can’t perform that action at this time.
0 commit comments