def main(argv=None):
arguments = cli_common(__doc__, argv=argv)<EOL>report = ReportNode(arguments['<STR_LIT>'])<EOL>jobs = wait_for_completion(report, float(arguments['<STR_LIT>']))<EOL>status = ReportStatus(report, jobs)<EOL>if not arguments['<STR_LIT>']:<EOL><INDENT>fmt = arguments['<STR_LIT>'] or '<STR_LIT>'<EOL>status.log(fmt)<EOL><DEDENT>if argv is None:<EOL><INDENT>sys.exit(<NUM_LIT:0> if status.succeeded else <NUM_LIT:1>)<EOL><DEDENT>return status.status<EOL>
ben-wait entry point