From 42f4b9f4e52b7d0b201d00f86c669362958dcbe9 Mon Sep 17 00:00:00 2001 From: janis Date: Wed, 15 Mar 2023 12:36:10 +0100 Subject: [PATCH] fix quotes --- fsrimagevideoupscaler-cli.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fsrimagevideoupscaler-cli.py b/fsrimagevideoupscaler-cli.py index 0714f44..133dc4f 100644 --- a/fsrimagevideoupscaler-cli.py +++ b/fsrimagevideoupscaler-cli.py @@ -10,15 +10,15 @@ import argparse import bin.handler -ap = argparse.ArgumentParser(description="FSRImageVideoUpscaler - CLI") -ap.add_argument("inputfile", help="File path for the video / image to be upscaled") -ap.add_argument("outputfile", help="File path for the video / image that was upscaled") -ap.add_argument('-s', '--scalefactor', help="Scale factor for the video / image") +ap = argparse.ArgumentParser( description='FSRImageVideoUpscaler - CLI' ) +ap.add_argument( 'inputfile', help='File path for the video / image to be upscaled' ) +ap.add_argument( 'outputfile', help='File path for the video / image that was upscaled' ) +ap.add_argument( '-s', '--scalefactor', help='Scale factor for the video / image' ) args = ap.parse_args() handler = bin.handler.Handler() -if ( args.scalefactor[ len(args.scalefactor) -1:] == 'x' ): +if ( args.scalefactor[ len(args.scalefactor) -1: ] == 'x' ): handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', args.scalefactor, args.outputfile ) else: - raise NameError( 'Argument Scale does require to be of form 2x!' ) \ No newline at end of file + raise NameError( 'Argument Scale does require to be of form 2x! (it has to end in x)' ) \ No newline at end of file