]> Git Repo - VerusCoin.git/blame - src/listassetchainparams
improve check
[VerusCoin.git] / src / listassetchainparams
CommitLineData
2e986a8a
LC
1#!/usr/bin/env python2
2import os
3import json
4
848bfdbd
LC
5def format_param(param, value):
6 return '-' + param + '=' + value
7
2e986a8a
LC
8script_dir = os.path.dirname(__file__)
9with open(script_dir + '/assetchains.json') as file:
10 assetchains = json.load(file)
11
12for 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))
This page took 0.057406 seconds and 4 git commands to generate.