From 393bbd2fc298a7b509b34ee486a328ab99b9d2f5 Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 21 Feb 2022 23:43:57 +0000 Subject: [PATCH] WIP Add last arg to man maps and specs, arg flags settable through cli --- scripts/man.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)