@@ -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" ,
@@ -64,11 +64,16 @@ def run(argv):
64
64
"--nomp" , action = "store_true" , help = "Do not use multi process optimizations"
65
65
)
66
66
parser .add_argument ("--external" , type = str , help = "Run external diff tool command" )
67
- parser .add_argument ("PREFILE" , help = "Font file path/URL 1" )
68
- parser .add_argument ("POSTFILE" , help = "Font file path/URL 2" )
67
+ # parser.add_argument("PREFILE", help="Font file path/URL 1")
68
+ # parser.add_argument("POSTFILE", help="Font file path/URL 2")
69
69
70
70
args = parser .parse_args (argv )
71
71
72
+ if args .git :
73
+ print (args .git )
74
+ args .PREFILE = args .git [1 ]
75
+ args .POSTFILE = args .git [4 ]
76
+
72
77
# /////////////////////////////////////////////////////////
73
78
#
74
79
# Validations
@@ -118,11 +123,6 @@ def run(argv):
118
123
# optimization use
119
124
use_mp = not args .nomp
120
125
121
- if args .git :
122
- pass
123
- # TODO: catch 2nd & 5th parameters and stuff them in args.PREFILE and
124
- # args.POSTFILE respectively
125
-
126
126
if args .external :
127
127
# ------------------------------
128
128
# External executable tool diff
0 commit comments