Cosimo Lupo b7bb391033
don't use sys.exit(...) inside main(), but only under if __name__ == "__main__"
The convention is that sys.exit(...) is called only if a module is run as a script,
and that main() entry points use return statements to report exit codes: 0 (or None)
for successful execution, or any non-zero integer for errors.

E.g. see the console scripts generated when installing with pip.
2017-01-11 12:10:58 +00:00
..
2017-01-10 17:57:04 +01:00
2017-01-10 11:01:06 -08:00
2016-11-26 14:05:23 +01:00
2016-09-27 19:49:41 +02:00