]> Git Repo - VerusCoin.git/blob - src/listassetchainparams
Merge pull request #44 from jl777/dev
[VerusCoin.git] / src / listassetchainparams
1 #!/usr/bin/env python2
2 import os
3 import json
4
5 def format_param(param, value):
6     return '-' + param + '=' + value
7
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:
17                 params.append(format_param(param, dupe_value))
18         else:
19             params.append(format_param(param, value))
20     print(' '.join(params))
This page took 0.024481 seconds and 4 git commands to generate.