def main(argv=None):
arguments = cli_common(__doc__, argv=argv)<EOL>csv_export = CSVExporter(arguments['<STR_LIT>'], arguments['<STR_LIT>'])<EOL>if arguments['<STR_LIT>']:<EOL><INDENT>csv_export.peek()<EOL><DEDENT>else:<EOL><INDENT>fieldsstr = arguments.get('<STR_LIT>')<EOL>fields = fieldsstr.split('<STR_LIT:U+002C>') if fieldsstr else None<EOL>csv_export.export(fields)<EOL><DEDENT>if argv is not None:<EOL><INDENT>return csv_export<EOL><DEDENT>
ben-csv entry point