Skip to content

Commit 13be898

Browse files
committed
Add --git argument with 7 inputs
1 parent fca0012 commit 13be898

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/fdiff/__main__.py

Lines changed: 6 additions & 0 deletions
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",
@@ -117,6 +118,11 @@ def run(argv):
117118
# optimization use
118119
use_mp = not args.nomp
119120

121+
if args.git:
122+
pass
123+
# TODO: catch 2nd & 5th parameters and stuff them in args.PREFILE and
124+
# args.POSTFILE respectively
125+
120126
if args.external:
121127
# ------------------------------
122128
# External executable tool diff

0 commit comments

Comments
 (0)