1
Fork 0

Don't print build statistics if we explicitly asked for the help message.

This commit is contained in:
Nathan Stocks 2017-03-30 22:12:01 -06:00
parent 8ad5c95e52
commit e1c1e09867

View file

@ -593,6 +593,7 @@ def main():
start_time = time()
try:
bootstrap()
if ('-h' not in sys.argv) and ('--help' not in sys.argv):
print("Build completed successfully in %s" % format_build_time(time() - start_time))
except (SystemExit, KeyboardInterrupt) as e:
if hasattr(e, 'code') and isinstance(e.code, int):
@ -600,6 +601,7 @@ def main():
else:
exit_code = 1
print(e)
if ('-h' not in sys.argv) and ('--help' not in sys.argv):
print("Build completed unsuccessfully in %s" % format_build_time(time() - start_time))
sys.exit(exit_code)