Use vlogging.main_decorator.
This commit is contained in:
parent
0ecfb9abab
commit
eeda354a2b
1 changed files with 1 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue