From 41c7ac0aec974c7f937c140464f5f422199545df Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 28 Jan 2022 19:07:38 +0100 Subject: [PATCH] fxconv: allow custom-type to work as type --- fxconv/fxconv-main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fxconv/fxconv-main.py b/fxconv/fxconv-main.py index 18194ee..c1d18a4 100755 --- a/fxconv/fxconv-main.py +++ b/fxconv/fxconv-main.py @@ -121,7 +121,7 @@ def main(): else: params = fxconv.parse_parameters(args) - if "type" in params: + if "type" in params or "custom-type" in params: pass elif len(mode) == 1: params["type"] = { "b": "binary", "i": "image", "f": "font" }[mode] @@ -129,7 +129,7 @@ def main(): params["type"] = mode # Will be deprecated in the future - if params["type"] == "image": + if params.get("type") == "image": warn("type 'image' is deprecated, use 'bopti-image' instead") params["type"] = "bopti-image"