fix last-minute-change bug

This commit is contained in:
relikd
2021-10-13 00:31:37 +02:00
parent 92775e7f8e
commit 63ead01c47

View File

@@ -67,8 +67,8 @@ def cli_update(args: ArgParams) -> None:
icns.add_media(IcnsType.key_from_readable(key), file=val, force=True)
has_changes = True
# write file
if has_changes or args.o:
icns.write(args.o or args.file, toc=icns.has_toc())
if has_changes or args.output:
icns.write(args.output or args.file, toc=icns.has_toc())
def cli_print(args: ArgParams) -> None: