main should return args.func(args) value.

This commit is contained in:
Ethan Dalool 2020-02-08 17:19:12 -08:00
parent eb85ee688c
commit b4e6f448a1
8 changed files with 14 additions and 14 deletions

View file

@ -110,7 +110,7 @@ def main(argv):
p_decrypt.set_defaults(func=decrypt_argparse) p_decrypt.set_defaults(func=decrypt_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:]))

View file

@ -99,4 +99,4 @@ def main(argv):
image.save(new_name) image.save(new_name)
if __name__ == '__main__': if __name__ == '__main__':
main(sys.argv[1:]) raise SystemExit(main(sys.argv[1:]))

View file

@ -1006,7 +1006,7 @@ def main(argv):
#print(argv) #print(argv)
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:]))

View file

@ -286,7 +286,7 @@ def main(argv):
parser.set_defaults(func=pathtree_argparse) parser.set_defaults(func=pathtree_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:]))

View file

@ -166,7 +166,7 @@ def main(argv):
p_download.set_defaults(func=download_argparse) p_download.set_defaults(func=download_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:]))

View file

@ -128,7 +128,7 @@ def main(argv):
parser.set_defaults(func=image_to_svg_argparse) parser.set_defaults(func=image_to_svg_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:]))

View file

@ -102,7 +102,7 @@ def main(argv):
parser.set_defaults(func=threaded_dl_argparse) parser.set_defaults(func=threaded_dl_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:]))

View file

@ -287,7 +287,7 @@ def main(argv):
parser.set_defaults(func=voxelsphere_argparse) parser.set_defaults(func=voxelsphere_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:]))