fix quotes
This commit is contained in:
@@ -10,15 +10,15 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import bin.handler
|
import bin.handler
|
||||||
|
|
||||||
ap = argparse.ArgumentParser(description="FSRImageVideoUpscaler - CLI")
|
ap = argparse.ArgumentParser( description='FSRImageVideoUpscaler - CLI' )
|
||||||
ap.add_argument("inputfile", help="File path for the video / image to be upscaled")
|
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( 'outputfile', help='File path for the video / image that was upscaled' )
|
||||||
ap.add_argument('-s', '--scalefactor', help="Scale factor for the video / image")
|
ap.add_argument( '-s', '--scalefactor', help='Scale factor for the video / image' )
|
||||||
args = ap.parse_args()
|
args = ap.parse_args()
|
||||||
|
|
||||||
handler = bin.handler.Handler()
|
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 )
|
handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', args.scalefactor, args.outputfile )
|
||||||
else:
|
else:
|
||||||
raise NameError( 'Argument Scale does require to be of form 2x!' )
|
raise NameError( 'Argument Scale does require to be of form 2x! (it has to end in x)' )
|
||||||
Reference in New Issue
Block a user