kopia lustrzana https://github.com/peterhinch/micropython-font-to-py
add some warnings to font_to_py for unsupported cli flag combinations
rodzic
b6259d81fb
commit
9da8817f68
|
@ -693,6 +693,15 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
args = parser.parse_args()
|
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):
|
if not os.path.isfile(args.infile):
|
||||||
quit("Font filename does not exist")
|
quit("Font filename does not exist")
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue