Use vlogging.main_decorator.

This commit is contained in:
voussoir 2021-08-10 11:54:22 -07:00
parent 0ecfb9abab
commit eeda354a2b
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -45,10 +45,8 @@ def directory_discrepancy_argparse(args):
for discrepancy in sorted(files2.difference(files1)): for discrepancy in sorted(files2.difference(files1)):
print(discrepancy) print(discrepancy)
@vlogging.main_decorator
def main(argv): def main(argv):
argv = vlogging.set_level_by_argv(log, argv)
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('dir1') parser.add_argument('dir1')