Skip to content

Commit

Permalink
Merge pull request #162 from googlefonts/no-args
Browse files Browse the repository at this point in the history
hookup no-diffenator and no-diffbrowsers
  • Loading branch information
m4rc1e authored Oct 28, 2024
2 parents f2791c5 + a1035fe commit a0bc1b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/diffenator2/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def main(**kwargs):
"--fonts-after", "-fa", nargs="+", required=True, type=DFont
)
diff_parser.add_argument("--no-diffenator", default=False, action="store_true")
diff_parser.add_argument("--no-diffbrowsers", default=False, action="store_true")
diff_parser.add_argument("--threshold", "-t", type=float, default=THRESHOLD)
diff_parser.add_argument("--precision", default=FONT_SIZE, type=int)
# TODO this can just be precision
Expand All @@ -81,6 +82,8 @@ def main(**kwargs):
if args.command == "proof":
ninja_proof(**vars(args))
elif args.command == "diff":
args.diffbrowsers=False if args.no_diffbrowsers else True
args.diffenator=False if args.no_diffenator else True
ninja_diff(**vars(args))
else:
raise NotImplementedError(f"{args.command} not supported")
Expand Down

0 comments on commit a0bc1b7

Please sign in to comment.