'Check command line arguments and run the build steps.
:param FilePath top_level: The top-level of the flocker repository.
:param base_path: ignored.'

def main(self, top_level=None, base_path=None):

    to_file(self.sys_module.stderr)
    options = DockerBuildOptions()
    try:
        options.parseOptions(self.sys_module.argv[1:])
    except usage.UsageError as e:
        self.sys_module.stderr.write(('%s\n' % (options,)))
        self.sys_module.stderr.write(('%s\n' % (e,)))
        raise SystemExit(1)
    self.build_command(distribution=CURRENT_DISTRIBUTION, destination_path=options['destination-path'], package_uri=options['package-uri'], package_files=top_level.descendant(['admin', 'package-files'])).run()
