From 73c1af2ef8c08449fa37b56882714d36187085fd Mon Sep 17 00:00:00 2001 From: will Date: Sun, 6 Aug 2023 17:01:33 -0600 Subject: [PATCH] Turns out argparse handles mandatory argments lol --- main.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index aa7876e..cbe3c87 100644 --- a/main.py +++ b/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):