4 from itertools import product
6 def main(command, arg_dict, outfile):
10 for i,p in enumerate(arg_dict.items()):
14 command = command + f" --{k} {{{i}}} "
16 args_list = product(*values)
18 with open(outfile,'w') as of:
19 for args in args_list:
20 of.write(command.format(*args) + '\n')
22 if __name__ == '__main__':