Skip to content

Commit e1c1e09

Browse files
committed
Don't print build statistics if we explicitly asked for the help message.
1 parent 8ad5c95 commit e1c1e09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bootstrap/bootstrap.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,14 +593,16 @@ def main():
593593
start_time = time()
594594
try:
595595
bootstrap()
596-
print("Build completed successfully in %s" % format_build_time(time() - start_time))
596+
if ('-h' not in sys.argv) and ('--help' not in sys.argv):
597+
print("Build completed successfully in %s" % format_build_time(time() - start_time))
597598
except (SystemExit, KeyboardInterrupt) as e:
598599
if hasattr(e, 'code') and isinstance(e.code, int):
599600
exit_code = e.code
600601
else:
601602
exit_code = 1
602603
print(e)
603-
print("Build completed unsuccessfully in %s" % format_build_time(time() - start_time))
604+
if ('-h' not in sys.argv) and ('--help' not in sys.argv):
605+
print("Build completed unsuccessfully in %s" % format_build_time(time() - start_time))
604606
sys.exit(exit_code)
605607

606608
if __name__ == '__main__':

0 commit comments

Comments
 (0)