fixes to cli & handler

This commit is contained in:
janis
2023-03-15 12:32:50 +01:00
parent 0e15c2a31b
commit 70080953d0
3 changed files with 11 additions and 3 deletions

View File

@@ -18,4 +18,7 @@ args = ap.parse_args()
handler = bin.handler.Handler()
handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', '2x', args.outputfile )
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!' )