From eeda354a2b94391b9944fad67dad60359cdc4704 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 10 Aug 2021 11:54:22 -0700 Subject: [PATCH] Use vlogging.main_decorator. --- directory_discrepancy.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/directory_discrepancy.py b/directory_discrepancy.py index 767a045..b265e6e 100644 --- a/directory_discrepancy.py +++ b/directory_discrepancy.py @@ -45,10 +45,8 @@ def directory_discrepancy_argparse(args): for discrepancy in sorted(files2.difference(files1)): print(discrepancy) - +@vlogging.main_decorator def main(argv): - argv = vlogging.set_level_by_argv(log, argv) - parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('dir1')