Use vlogging.main_decorator.

This commit is contained in:
voussoir 2021-07-02 02:59:14 -07:00
parent 4aed87b522
commit 26040d4372
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 3 additions and 5 deletions

View file

@ -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)

View file

@ -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)