Conceal wait settings behind config check

This commit is contained in:
lash 2022-05-13 07:48:48 +00:00
parent 36bd98f3df
commit e225b4e333
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 7 additions and 6 deletions

View File

@ -71,7 +71,7 @@ class ArgFlag(BaseArgFlag):
self.alias('sign', 'key_file', 'send') self.alias('sign', 'key_file', 'send')
self.alias('std_base', 'verbose', 'config', 'raw', 'env', 'target') self.alias('std_base', 'verbose', 'config', 'raw', 'env', 'target')
self.alias('std_base_read', 'verbose', 'config', 'raw', 'env', 'provider', 'chain_spec', 'seq') self.alias('std_base_read', 'verbose', 'config', 'raw', 'env', 'provider', 'chain_spec', 'seq')
self.alias('std_read', 'std_base', 'provider', 'chain_spec', 'unsafe', 'seq', 'key_file', 'fee', 'target') self.alias('std_read', 'std_base', 'provider', 'chain_spec', 'unsafe', 'seq', 'sign', 'fee', 'target')
self.alias('std_write', 'verbose', 'config', 'raw', 'env', 'provider', 'chain_spec', 'unsafe', 'seq', 'key_file', 'sign', 'target', 'wait', 'wait_all', 'send', 'rpc_auth', 'nonce', 'fee') self.alias('std_write', 'verbose', 'config', 'raw', 'env', 'provider', 'chain_spec', 'unsafe', 'seq', 'key_file', 'sign', 'target', 'wait', 'wait_all', 'send', 'rpc_auth', 'nonce', 'fee')
self.alias('std_target', 'no_target', 'exec', 'wallet') self.alias('std_target', 'no_target', 'exec', 'wallet')

View File

@ -107,6 +107,7 @@ def process_config(config, arg, args, flags):
if arg.match('nonce', flags): if arg.match('nonce', flags):
config.add(getattr(args, 'nonce'), '_NONCE') config.add(getattr(args, 'nonce'), '_NONCE')
if arg.match('wait', flags):
if args.ww: if args.ww:
config.add(True, '_WAIT_ALL') config.add(True, '_WAIT_ALL')
config.add(True, '_WAIT') config.add(True, '_WAIT')