bug: Fix documentation compile and config dumps #2
@ -107,7 +107,7 @@ class ArgumentParser(argparse.ArgumentParser):
|
|||||||
self.add_argument(arg[0], type=arg[1], help=arg[2])
|
self.add_argument(arg[0], type=arg[1], help=arg[2])
|
||||||
args = super(ArgumentParser, self).parse_args(args=argv)
|
args = super(ArgumentParser, self).parse_args(args=argv)
|
||||||
|
|
||||||
if args.dumpconfig:
|
if getattr(args, 'dumpconfig', None) != None:
|
||||||
return args
|
return args
|
||||||
|
|
||||||
if len(self.pos_args) == 1:
|
if len(self.pos_args) == 1:
|
||||||
|
@ -236,7 +236,7 @@ class Config(confini.Config):
|
|||||||
if existing_r == None or r != None:
|
if existing_r == None or r != None:
|
||||||
config.add(r, v, exists_ok=True)
|
config.add(r, v, exists_ok=True)
|
||||||
|
|
||||||
if getattr(args, 'dumpconfig'):
|
if getattr(args, 'dumpconfig', None) != None:
|
||||||
config_keys = config.all()
|
config_keys = config.all()
|
||||||
with_values = not config.get('_RAW')
|
with_values = not config.get('_RAW')
|
||||||
for k in config_keys:
|
for k in config_keys:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib
|
name = chainlib
|
||||||
version = 0.0.10a7
|
version = 0.0.10a8
|
||||||
description = Generic blockchain access library and tooling
|
description = Generic blockchain access library and tooling
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user