chainlib/scripts/man.py

9 lines
202 B
Python
Raw Normal View History

import sys
from hexathon import strip_0x
2022-02-22 00:30:30 +01:00
from chainlib.cli.man import DocGenerator
b = bytes.fromhex(strip_0x(sys.argv[1]))
g = DocGenerator(int.from_bytes(b, byteorder='little'))
2022-02-22 00:30:30 +01:00
g.process()
print(g)