@@ -35,7 +35,7 @@ def run(argv):
35
35
description = "An OpenType table diff tool for fonts."
36
36
)
37
37
parser .add_argument ("--version" , action = "version" , version = f"fdiff v{ __version__ } " )
38
- parser .add_argument ("--git" , type = str , nargs = 7 , action = "git" , help = "Act as a diff driver for git (takes 7 parameters)" )
38
+ parser .add_argument ("--git" , type = str , nargs = 7 , help = "Act as a diff driver for git (takes 7 parameters)" )
39
39
parser .add_argument (
40
40
"-c" ,
41
41
"--color" ,
@@ -65,11 +65,16 @@ def run(argv):
65
65
"--nomp" , action = "store_true" , help = "Do not use multi process optimizations"
66
66
)
67
67
parser .add_argument ("--external" , type = str , help = "Run external diff tool command" )
68
- parser .add_argument ("PREFILE" , help = "Font file path/URL 1" )
69
- parser .add_argument ("POSTFILE" , help = "Font file path/URL 2" )
68
+ # parser.add_argument("PREFILE", help="Font file path/URL 1")
69
+ # parser.add_argument("POSTFILE", help="Font file path/URL 2")
70
70
71
71
args = parser .parse_args (argv )
72
72
73
+ if args .git :
74
+ print (args .git )
75
+ args .PREFILE = args .git [1 ]
76
+ args .POSTFILE = args .git [4 ]
77
+
73
78
# /////////////////////////////////////////////////////////
74
79
#
75
80
# Validations
@@ -108,11 +113,6 @@ def run(argv):
108
113
# optimization use
109
114
use_mp = not args .nomp
110
115
111
- if args .git :
112
- pass
113
- # TODO: catch 2nd & 5th parameters and stuff them in args.PREFILE and
114
- # args.POSTFILE respectively
115
-
116
116
if args .external :
117
117
# ------------------------------
118
118
# External executable tool diff
0 commit comments