fixed issue 443

This commit is contained in:
K4YT3X
2021-01-23 16:48:29 -05:00
parent dc51b8b04c
commit 5543382d03
5 changed files with 194 additions and 180 deletions

View File

@@ -84,7 +84,7 @@ language = gettext.translation(
language.install()
_ = language.gettext
CLI_VERSION = "4.3.2"
CLI_VERSION = "4.3.3"
LEGAL_INFO = _(
"""Video2X CLI Version: {}
@@ -259,6 +259,12 @@ if video2x_args.ratio is not None and (
Avalon.error(_("Specify either scaling ratio or scaling resolution, not both"))
sys.exit(1)
elif video2x_args.ratio is None and (
video2x_args.width is None or video2x_args.height is None
):
Avalon.error(_("Either scaling ratio or scaling resolution needs to be specified"))
sys.exit(1)
# redirect output to both terminal and log file
if video2x_args.log is not None:
log_file = video2x_args.log.open(mode="a+", encoding="utf-8")