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:
Doug Hellmann 2014-01-03 10:45:19 -05:00
parent fffe8dd14a
commit df4134e104
1 changed files with 1 additions and 2 deletions

View File

@ -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)