5 def format_param(param, value):
6 return '-' + param + '=' + value
8 script_dir = os.path.dirname(__file__)
9 with open(script_dir + '/assetchains.json') as file:
10 assetchains = json.load(file)
12 for chain in assetchains:
14 for param, value in chain.items():
15 if isinstance(value, list):
16 for dupe_value in value:
17 params.append(format_param(param, dupe_value))
19 params.append(format_param(param, value))
20 print(' '.join(params))