the main driver
()
| 303 | |
| 304 | |
| 305 | def main(): |
| 306 | """the main driver""" |
| 307 | parser = argparse.ArgumentParser() |
| 308 | parser.add_argument("-o", type=str, default=None, |
| 309 | help="output directory for the generated files") |
| 310 | parser.add_argument("-s", type=str, default="params", |
| 311 | help="name for the name struct that will hold the parameters") |
| 312 | parser.add_argument("--without-castro-class", action="store_true", help="don't include Castro:: in the struct namespace") |
| 313 | parser.add_argument("input_file", type=str, nargs=1, |
| 314 | help="input file containing the list of parameters we will define") |
| 315 | |
| 316 | args = parser.parse_args() |
| 317 | |
| 318 | p = read_param_file(args.input_file[0]) |
| 319 | write_headers_and_source(p, args.o, args.s, args.without_castro_class) |
| 320 | |
| 321 | if __name__ == "__main__": |
| 322 | main() |
no test coverage detected