code: def main(argv=None):
      
      arguments = cli_common(__doc__, argv=argv)
      csv_export = CSVExporter(arguments['CAMPAIGN-DIR'], arguments['--output'])
      if arguments['--peek']:
          csv_export.peek()
      else:
          fieldsstr = arguments.get('--fields')
          fields = fieldsstr.split(',') if fieldsstr else None
          csv_export.export(fields)
      if argv is not None:
          return csv_export
docs: ben-csv entry point