Parse CLI options after registering them
If we want to use the same set of base options for other commands, we need to wait to parse the CLI until after all options have been registered.
This commit is contained in:
parent
fffe8dd14a
commit
df4134e104
|
@ -141,11 +141,10 @@ def register_and_load_opts(argv):
|
|||
help='name of the exchange where we receive RPC calls'),
|
||||
])
|
||||
|
||||
cfg.CONF(argv, project='akanda')
|
||||
|
||||
|
||||
def main(argv=sys.argv[1:]):
|
||||
register_and_load_opts(argv)
|
||||
cfg.CONF(argv, project='akanda')
|
||||
|
||||
log.setup('akanda-rug')
|
||||
cfg.CONF.log_opt_values(LOG, logging.INFO)
|
||||
|
|
Loading…
Reference in New Issue