fxconv: allow custom-type to work as type

pull/9/head
Lephenixnoir 8 months ago
parent f17d741d54
commit 41c7ac0aec
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
  1. 4
      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"

Loading…
Cancel
Save