Skip to content

Commit be87b65

Browse files
committed
Fixed broken arg parsing
1 parent 309de9a commit be87b65

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

remove-json-keys/src/remove_json_keys/lib/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def load(cli, caller_file):
5959
kwargs.pop(custom_attr, None)
6060
argp.add_argument(*args, **kwargs)
6161
for key, val in vars(argp.parse_args()).items():
62-
if getattr(cli.config, key, None) is None:
62+
if not getattr(cli.config, key, ''):
6363
setattr(cli.config, key, val)
6464

6565
# Init all cli.config vals

translate-messages/src/translate_messages/lib/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def load(cli, caller_file):
7171
kwargs.pop(custom_attr, None)
7272
argp.add_argument(*args, **kwargs)
7373
for key, val in vars(argp.parse_args()).items():
74-
if getattr(cli.config, key, None) is None:
74+
if not getattr(cli.config, key, ''):
7575
setattr(cli.config, key, val)
7676

7777
# Init all cli.config vals

0 commit comments

Comments
 (0)