<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():
 """ Main function, mostly for passing arguments """

    _init_logging(config.get('config', 'anteater_log'))
    check_dir()
    arguments = docopt(__doc__, version=__version__)

    if arguments['<patchset>']:
        prepare_patchset(arguments['<project>'], arguments['<patchset>'],
                         arguments['--binaries'], arguments['--ips'], arguments['--urls'])
    elif arguments['<project_path>']:
        prepare_project(arguments['<project>'], arguments['<project_path>'],
                        arguments['--binaries'], arguments['--ips'], arguments['--urls'])