main should return args.func(args) value.

This commit is contained in:
voussoir 2020-02-08 17:20:27 -08:00
parent 6691c49481
commit 81b864ec19
2 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ def main(argv):
parser.set_defaults(func=upgrade_all_argparse)
args = parser.parse_args(argv)
args.func(args)
return args.func(args)
if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:]))

View file

@ -39,7 +39,7 @@ def main(argv):
parser.set_defaults(func=ytqueue_argparse)
args = parser.parse_args(argv)
args.func(args)
return args.func(args)
if __name__ == '__main__':
main(sys.argv[1:])
raise SystemExit(main(sys.argv[1:]))