Skip to content

Commit 77c4633

Browse files
committed
Add --git argument with 7 inputs
1 parent f27ca3a commit 77c4633

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/fdiff/__main__.py

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def run(argv):
3535
description="An OpenType table diff tool for fonts."
3636
)
3737
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)")
3839
parser.add_argument(
3940
"-c",
4041
"--color",
@@ -107,6 +108,11 @@ def run(argv):
107108
# optimization use
108109
use_mp = not args.nomp
109110

111+
if args.git:
112+
pass
113+
# TODO: catch 2nd & 5th parameters and stuff them in args.PREFILE and
114+
# args.POSTFILE respectively
115+
110116
if args.external:
111117
# ------------------------------
112118
# External executable tool diff

0 commit comments

Comments
 (0)