<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main(argv=None):
 """ben-elastic entry point"""

    arguments = cli_common(__doc__, argv=argv)
    es_export = ESExporter(arguments['CAMPAIGN-DIR'], arguments['--es'])
    es_export.export()
    if argv is not None:
        return es_export