From 26040d4372c507c19b8ebbf3316412de78198e6b Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 2 Jul 2021 02:59:14 -0700 Subject: [PATCH] Use vlogging.main_decorator. --- voussoirkit/downloady.py | 5 ++--- voussoirkit/operatornotify.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/voussoirkit/downloady.py b/voussoirkit/downloady.py index 5f065c1..f29db0b 100644 --- a/voussoirkit/downloady.py +++ b/voussoirkit/downloady.py @@ -475,10 +475,9 @@ def download_argparse(args): else: break - +@vlogging.main_decorator def main(argv): - argv = vlogging.main_level_by_argv(argv) - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('url') parser.add_argument('localname', nargs='?', default=None) diff --git a/voussoirkit/operatornotify.py b/voussoirkit/operatornotify.py index a1da4d1..201fe7e 100644 --- a/voussoirkit/operatornotify.py +++ b/voussoirkit/operatornotify.py @@ -232,9 +232,8 @@ def operatornotify_argparse(args): body='\n'.join(pipeable.input(args.body)), ) +@vlogging.main_decorator def main(argv): - argv = vlogging.main_level_by_argv(argv) - parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--subject', required=True)