Skip to content

Commit

Permalink
fixing unknown args
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesivsm committed Nov 28, 2017
1 parent 77aaa8b commit a9d987c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def the_conf_test_suite():
readme = fd.read()

setup(name='the_conf',
version='0.0.5',
version='0.0.6',
description='Config build from multiple sources',
long_description=readme,
keywords='conf configuration json yaml command line environ',
Expand Down
2 changes: 1 addition & 1 deletion the_conf/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_parser(path_n_params, config_file_cmd_line):

def yield_values_from_cmd(path_val_params, opts, config_file_cmd_line):
parser = get_parser(path_val_params, config_file_cmd_line)
cmd_line_args = parser.parse_args(opts)
cmd_line_args, _ = parser.parse_known_args(opts)
yield getattr(cmd_line_args, CONFIG_OPT_DEST)
for path, _, _ in path_val_params:
value = getattr(cmd_line_args, path_to_dest(path))
Expand Down

0 comments on commit a9d987c

Please sign in to comment.