From 98ecf91adcd0c3e53e607b0ae9f1905480e25d9e Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 11 May 2022 18:25:46 +0000 Subject: [PATCH] WIP factor out config processing --- chainlib/cli/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chainlib/cli/config.py b/chainlib/cli/config.py index 00fed02..f9e002e 100644 --- a/chainlib/cli/config.py +++ b/chainlib/cli/config.py @@ -359,6 +359,12 @@ def process_config(config, arg, args, flags): config.censor('PASSPHRASE', 'WALLET') config.dict_override(args_override, 'cli args', allow_empty=True) + if arg.match('provider', flags): + + config.add(getattr(args, 'height'), '_HEIGHT') + #if flags & (Flag.PROVIDER | Flag.NO_TARGET) == Flag.PROVIDER: + # config.add(getattr(args, 'height'), '_HEIGHT') + config.process() return config