Use vlogging.main_decorator.
This commit is contained in:
parent
4aed87b522
commit
26040d4372
2 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue