def main():
<EOL>arg_parser = argparse.ArgumentParser()<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=True, action='<STR_LIT:store>',<EOL>help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=True, action='<STR_LIT:store>',<EOL>help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=False, action='<STR_LIT:store>',<EOL>help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT:-c>', required=False, action='<STR_LIT:store_true>',<EOL>help='<STR_LIT>')<EOL>args = arg_parser.parse_args()<EOL>source_dir = args.sourcedir<EOL>doc_file = args.docfile<EOL>code_links = args.codelinks<EOL>proj_name = args.projectname<EOL>if proj_name is None:<EOL><INDENT>proj_name = source_dir<EOL><DEDENT>meta_doc = {'<STR_LIT>': proj_name + '<STR_LIT>'}<EOL>meta_doc['<STR_LIT>'] = []<EOL>for source_file in glob.glob(source_dir + '<STR_LIT>'):<EOL><INDENT>if '<STR_LIT>' in source_file:<EOL><INDENT>print('<STR_LIT>' + source_file)<EOL>continue<EOL><DEDENT>file_meta_doc = process_file(source_file)<EOL>meta_doc['<STR_LIT>'].append(file_meta_doc)<EOL><DEDENT>process_output(meta_doc, doc_file, code_links)<EOL>
Main routine.