Handle missing dumpconfig arg

This commit is contained in:
nolash 2021-10-27 20:53:07 +02:00
parent 1373cb10e6
commit 7d7209dd31
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ class ArgumentParser(argparse.ArgumentParser):
self.add_argument(arg[0], type=arg[1], help=arg[2])
args = super(ArgumentParser, self).parse_args(args=argv)
if args.dumpconfig:
if getattr(args, 'dumpconfig', None) != None:
return args
if len(self.pos_args) == 1:

View File

@ -236,7 +236,7 @@ class Config(confini.Config):
if existing_r == None or r != None:
config.add(r, v, exists_ok=True)
if getattr(args, 'dumpconfig'):
if getattr(args, 'dumpconfig', None) != None:
config_keys = config.all()
with_values = not config.get('_RAW')
for k in config_keys:

View File

@ -1,6 +1,6 @@
[metadata]
name = chainlib
version = 0.0.10a7
version = 0.0.10a8
description = Generic blockchain access library and tooling
author = Louis Holbrook
author_email = dev@holbrook.no