]>
Commit | Line | Data |
---|---|---|
2e986a8a LC |
1 | #!/usr/bin/env python2 |
2 | import os | |
3 | import json | |
4 | ||
848bfdbd LC |
5 | def format_param(param, value): |
6 | return '-' + param + '=' + value | |
7 | ||
2e986a8a LC |
8 | script_dir = os.path.dirname(__file__) |
9 | with open(script_dir + '/assetchains.json') as file: | |
10 | assetchains = json.load(file) | |
11 | ||
12 | for chain in assetchains: | |
13 | params = [] | |
14 | for param, value in chain.items(): | |
15 | if isinstance(value, list): | |
16 | for dupe_value in value: | |
848bfdbd | 17 | params.append(format_param(param, dupe_value)) |
2e986a8a | 18 | else: |
848bfdbd | 19 | params.append(format_param(param, value)) |
2e986a8a | 20 | print(' '.join(params)) |