def main(argv=sys.argv[1:]):
    parser = argparse.ArgumentParser(description="Read package.xml and write extracted variables to stdout")
    parser.add_argument('package_xml')
    parser.add_argument('outfile')
    args = parser.parse_args(argv)
    package = parse_package(args.package_xml)

    lines = _get_output(package)
    with open(args.outfile, 'w') as ofile:
        ofile.write('\n'.join(lines))
Reads given package_xml and writes extracted variables to outfile.
dataset/ETHPy150Open ros/catkin/cmake/parse_package_xml.py/main