Conceal wait settings behind config check
This commit is contained in:
parent
36bd98f3df
commit
e225b4e333
@ -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')
|
||||||
|
|
||||||
|
@ -107,11 +107,12 @@ 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 args.ww:
|
if arg.match('wait', flags):
|
||||||
config.add(True, '_WAIT_ALL')
|
if args.ww:
|
||||||
config.add(True, '_WAIT')
|
config.add(True, '_WAIT_ALL')
|
||||||
elif args.w:
|
config.add(True, '_WAIT')
|
||||||
config.add(True, '_WAIT')
|
elif args.w:
|
||||||
|
config.add(True, '_WAIT')
|
||||||
|
|
||||||
if arg.match('seq', flags):
|
if arg.match('seq', flags):
|
||||||
config.add(getattr(args, 'seq'), '_SEQ')
|
config.add(getattr(args, 'seq'), '_SEQ')
|
||||||
|
Loading…
Reference in New Issue
Block a user