def main(args, base_path, top_level):
    options = RunOptions(top_level=top_level)

    try:
        options.parseOptions(args)
    except UsageError as e:
        sys.exit("%s: %s\n" % (base_path.basename(), e))

    distribution = options['distribution']
    package_source = options['package_source']
    if options['pip']:
        get_steps = get_steps_pip
    else:
        get_steps = get_steps_pkg
    steps = get_steps(distribution, package_source)
    container = DockerContainer.from_distribution(distribution)
    status = run_steps(container, steps)
    sys.exit(status)
Tests the flush command.
dataset/ETHPy150Open ClusterHQ/flocker/admin/client.py/main--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/appengine_django/tests/commands_test.py/CommandsTest.testFlush