main should return args.func(args) value.
This commit is contained in:
parent
6691c49481
commit
81b864ec19
2 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ def main(argv):
|
||||||
parser.set_defaults(func=upgrade_all_argparse)
|
parser.set_defaults(func=upgrade_all_argparse)
|
||||||
|
|
||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
args.func(args)
|
return args.func(args)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
raise SystemExit(main(sys.argv[1:]))
|
raise SystemExit(main(sys.argv[1:]))
|
||||||
|
|
|
@ -39,7 +39,7 @@ def main(argv):
|
||||||
parser.set_defaults(func=ytqueue_argparse)
|
parser.set_defaults(func=ytqueue_argparse)
|
||||||
|
|
||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
args.func(args)
|
return args.func(args)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv[1:])
|
raise SystemExit(main(sys.argv[1:]))
|
||||||
|
|
Loading…
Reference in a new issue