diff --git a/scripts/man.py b/scripts/man.py index 15dd322..52beafe 100644 --- a/scripts/man.py +++ b/scripts/man.py @@ -1,6 +1,8 @@ +import sys +from hexathon import strip_0x from chainlib.cli.man import DocGenerator - -g = DocGenerator(0xffffffff) +b = bytes.fromhex(strip_0x(sys.argv[1])) +g = DocGenerator(int.from_bytes(b, byteorder='little')) g.process() print(g)