Turns out argparse handles mandatory argments lol

This commit is contained in:
will 2023-08-06 17:01:33 -06:00
parent 1fa81a61e4
commit 73c1af2ef8

12
main.py
View file

@ -26,16 +26,8 @@ try:
keepOtherFiles = args.keepotherfiles
preserveMetadata = not args.stripmetadata
startDir = ""
if(args.source):
startDir = args.source
else:
print("No source directory specified!")
exit()
outDir = startDir+"_"+targetFormat
if(args.target):
outDir = args.target
startDir = args.source
outDir = args.target
filecount = 0
for path,dirs,files in os.walk(startDir):