diff --git a/brename.py b/brename.py index 99ebf74..8fe70bb 100644 --- a/brename.py +++ b/brename.py @@ -116,7 +116,7 @@ def main(argv): parser.set_defaults(func=brename_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/breplace.py b/breplace.py index e355b24..f059b31 100644 --- a/breplace.py +++ b/breplace.py @@ -19,7 +19,7 @@ def main(argv): parser.set_defaults(func=breplace_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/contentreplace.py b/contentreplace.py index a35e37c..b0cc4e1 100644 --- a/contentreplace.py +++ b/contentreplace.py @@ -69,7 +69,7 @@ def main(argv): parser.set_defaults(func=contentreplace_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/do_tasks.py b/do_tasks.py index 4ae5841..2f85255 100644 --- a/do_tasks.py +++ b/do_tasks.py @@ -50,7 +50,7 @@ def main(argv): parser.set_defaults(func=do_tasks_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/drawn_quartered.py b/drawn_quartered.py index 1e22412..d5ded4e 100644 --- a/drawn_quartered.py +++ b/drawn_quartered.py @@ -67,7 +67,7 @@ def main(argv): parser.set_defaults(func=drawquarter_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:])) diff --git a/fileprefix.py b/fileprefix.py index c93aa7c..77c2d70 100644 --- a/fileprefix.py +++ b/fileprefix.py @@ -104,7 +104,7 @@ def main(argv): parser.set_defaults(func=fileprefix_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:])) diff --git a/filepull.py b/filepull.py index f8adee4..e61831d 100644 --- a/filepull.py +++ b/filepull.py @@ -51,7 +51,7 @@ def main(argv): parser.set_defaults(func=filepull_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:])) diff --git a/filetimelapse.py b/filetimelapse.py index 5546562..36f2c24 100644 --- a/filetimelapse.py +++ b/filetimelapse.py @@ -70,7 +70,7 @@ def main(argv): parser.set_defaults(func=filetimelapse_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/getcrx.py b/getcrx.py index 5289570..9174757 100644 --- a/getcrx.py +++ b/getcrx.py @@ -136,7 +136,7 @@ def main(argv): parser.set_defaults(func=getcrx_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:])) diff --git a/hexdump.py b/hexdump.py index afa5451..6873510 100644 --- a/hexdump.py +++ b/hexdump.py @@ -57,7 +57,7 @@ def main(argv): parser.set_defaults(func=hexdump_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:])) diff --git a/hexpng.py b/hexpng.py index f7993ed..98afa28 100644 --- a/hexpng.py +++ b/hexpng.py @@ -40,7 +40,7 @@ def main(argv): parser.set_defaults(func=hexpng_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/kbps.py b/kbps.py index 2edbda1..2c74a16 100644 --- a/kbps.py +++ b/kbps.py @@ -69,7 +69,7 @@ def main(argv): parser.set_defaults(func=example_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:])) diff --git a/mp3slice.py b/mp3slice.py index bcf7a11..879dec7 100644 --- a/mp3slice.py +++ b/mp3slice.py @@ -165,7 +165,7 @@ def main(argv): parser.set_defaults(func=example_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:])) diff --git a/pip_download.py b/pip_download.py index d6c4f06..8d689f3 100644 --- a/pip_download.py +++ b/pip_download.py @@ -50,7 +50,7 @@ def main(argv): parser.set_defaults(func=pip_download_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/search.py b/search.py index 44afef4..8303f32 100644 --- a/search.py +++ b/search.py @@ -272,7 +272,7 @@ def main(argv): args.content_args = parser.parse_args(content_args) else: args.content_args = None - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/subtitle_shift_pointsync.py b/subtitle_shift_pointsync.py index 0a48b60..788ccc4 100644 --- a/subtitle_shift_pointsync.py +++ b/subtitle_shift_pointsync.py @@ -191,7 +191,7 @@ def main(argv): parser.set_defaults(func=pointsync_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:])) diff --git a/zerofile.py b/zerofile.py index 82957d5..e933cd5 100644 --- a/zerofile.py +++ b/zerofile.py @@ -30,7 +30,7 @@ def main(argv): parser.set_defaults(func=zerofile_argparse) args = parser.parse_args(argv) - args.func(args) + return args.func(args) if __name__ == '__main__': raise SystemExit(main(sys.argv[1:]))