Turns out argparse handles mandatory argments lol
This commit is contained in:
parent
1fa81a61e4
commit
73c1af2ef8
1 changed files with 2 additions and 10 deletions
12
main.py
12
main.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue