def write_cmdline(config, output_path):
    with open(output_path, 'w') as cmdline_file:
        name = str(config['command']).capitalize()
        match = RE_PROJECT_NAME.match(config['project_name'])
        if match:
            name = match.group(1)
        title = "%s command line reference" % name
        heading = "%s\n%s" % (title, '='*len(title))
        cmdline_file.write(DOC_CMDLINE.format(
            command=config['command'],
            heading=heading))
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/make_new.py/write_cmdline/original