I tried using ann-solo in scripts, and it seemingly always fails because of imporperly set error code.
Checked source, and I see its calling sys.exit with result of main
call, then main returns string, sys.exit coerces this to integer, string is
non-empty -> its effectively exit(1) (error flag set).
suggested patch (works for me, probably could be done better):
I tried using ann-solo in scripts, and it seemingly always fails because of imporperly set error code.
Checked source, and I see its calling sys.exit with result of
main
call, thenmain
returns string, sys.exit coerces this to integer, string is non-empty -> its effectively exit(1) (error flag set).suggested patch (works for me, probably could be done better):