Skip to content

Commit

Permalink
keep old --use-mutatormath option to print error when passed nudging …
Browse files Browse the repository at this point in the history
…to ufoProcessor
  • Loading branch information
anthrotype committed Jul 26, 2023
1 parent d5869b4 commit 806ec2c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Lib/fontmake/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import logging
import os
import sys
from argparse import ArgumentParser, FileType
from argparse import SUPPRESS, ArgumentParser, FileType
from collections import namedtuple
from contextlib import contextmanager
from textwrap import dedent
Expand Down Expand Up @@ -308,6 +308,8 @@ def main(args=None):
"""
),
)
# no longer show option in --help but keep to produce nice error message
outputGroup.add_argument("--use-mutatormath", action="store_true", help=SUPPRESS)
outputGroup.add_argument(
"-M",
"--masters-as-instances",
Expand Down Expand Up @@ -612,6 +614,13 @@ def main(args=None):

args = vars(parser.parse_args(args))

use_mutatormath = args.pop("use_mutatormath")
if use_mutatormath:
parser.error(
"MutatorMath is no longer supported by fontmake. "
"Try to use ufoProcessor: https://github.com/LettError/ufoProcessor"
)

level = args.pop("verbose")
_configure_logging(level, timing=args.pop("timing"))

Expand Down

0 comments on commit 806ec2c

Please sign in to comment.