From b99eecf8c52621f8008d0720470ddc8127ed14c4 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 8 Feb 2020 16:19:58 -0800 Subject: [PATCH] main should return args.func(args) value. --- epubfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epubfile.py b/epubfile.py index a08d626..0aec2b2 100644 --- a/epubfile.py +++ b/epubfile.py @@ -1539,7 +1539,7 @@ p_normalize.set_defaults(func=normalize_argparse) @betterhelp.subparser_betterhelp(parser, main_docstring=DOCSTRING, sub_docstrings=SUB_DOCSTRINGS) def main(argv): args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:]))