mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-02-16 02:10:35 +08:00
fixed issue 443
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user