Add get man page, remove chain spec arg from get, info

This commit is contained in:
lash
2022-02-24 10:36:15 +00:00
parent a3081367db
commit 7e6daa0be3
7 changed files with 55 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ from chainlib.cli import (
argflag_std_read,
argflag_std_write,
argflag_std_base,
reset as argflag_reset,
argflag_std_base_read,
flag_reset as argflag_reset,
Flag,
)

View File

@@ -7,6 +7,8 @@ from hexathon import add_0x
cmds = {
'gas': chainlib.eth.cli.argflag_std_write | chainlib.eth.cli.Flag.WALLET,
'info': chainlib.eth.cli.argflag_reset(chainlib.cli.argflag_std_base_read, chainlib.eth.cli.Flag.CHAIN_SPEC),
'get': chainlib.eth.cli.argflag_reset(chainlib.cli.argflag_std_base_read, chainlib.eth.cli.Flag.CHAIN_SPEC),
}
if __name__ == '__main__':

View File

@@ -48,7 +48,8 @@ logg = logging.getLogger()
script_dir = os.path.dirname(os.path.realpath(__file__))
config_dir = os.path.join(script_dir, '..', 'data', 'config')
arg_flags = chainlib.eth.cli.argflag_std_read
arg_flags = chainlib.eth.cli.argflag_std_base_read
arg_flags = chainlib.eth.cli.argflag_reset(arg_flags, chainlib.eth.cli.Flag.CHAIN_SPEC)
argparser = chainlib.eth.cli.ArgumentParser(arg_flags)
argparser.add_positional('item', type=str, help='Address or transaction to retrieve data for')
args = argparser.parse_args()