fxconv: allow custom-type to work as type

This commit is contained in:
Lephenixnoir 2022-01-28 19:07:38 +01:00
parent f17d741d54
commit 41c7ac0aec
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

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