add some warnings to font_to_py for unsupported cli flag combinations

pull/3/head
Brian Cappello 2017-07-04 18:38:43 -04:00
rodzic b6259d81fb
commit 9da8817f68
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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")