def main():
    opt = Options()
    opt.parse(sys.argv[1:])
    if opt.verbose:
        print(print_parameters(opt))
    if opt.action == opt.action_check_str:
        crc = check_string(opt)
        print("{0:#x}".format(crc))
    if opt.action == opt.action_check_hex_str:
        crc = check_hexstring(opt)
        print("{0:#x}".format(crc))
    if opt.action == opt.action_check_file:
        crc = check_file(opt)
        print("{0:#x}".format(crc))
    if opt.action in set([
            opt.action_generate_h, opt.action_generate_c, opt.action_generate_c_main,
            opt.action_generate_table]):
        parser = MacroParser(opt)
        if opt.action == opt.action_generate_h:
            in_str = "$h_template"
        elif opt.action == opt.action_generate_c:
            in_str = "$c_template"
        elif opt.action == opt.action_generate_c_main:
            in_str = "$c_template\n\n$main_template"
        elif opt.action == opt.action_generate_table:
            in_str = "$crc_table_init"
        else:
            sys.stderr.write(
                "{0:s}: error: unknown action. Please file a bug report!\n".format(sys.argv[0]))
            sys.exit(1)
        parser.parse(in_str)
        if opt.output_file == None:
            print(parser.out_str)
        else:
            write_file(opt.output_file, parser.out_str)
    return 0


# program entry point
###############################################################################
A convenience method which coerces the specified value to a float.
dataset/ETHPy150Open tpircher/pycrc/pycrc.py/main--crossover with--dataset/ETHPy150Open boakley/robotframework-workbench/rwb/lib/configobj.py/Section.as_float