From 9da8817f68b4b9de47fefd82b223cd68782e9cfc Mon Sep 17 00:00:00 2001 From: Brian Cappello Date: Tue, 4 Jul 2017 18:38:43 -0400 Subject: [PATCH] add some warnings to font_to_py for unsupported cli flag combinations --- font_to_py.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/font_to_py.py b/font_to_py.py index 7b31414..68c91ef 100755 --- a/font_to_py.py +++ b/font_to_py.py @@ -693,6 +693,15 @@ if __name__ == "__main__": args = parser.parse_args() + if args.lmap and args.xmap: + quit('Please select only one of line (L) mapping or horizontal (x) mapping') + + if args.lmap and args.reverse: + quit('Cannot use bit reversal with line mapping') + + if args.lmap and args.binary: + raise NotImplementedError + if not os.path.isfile(args.infile): quit("Font filename does not exist")