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])
|
||||
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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user