Skip to content

Commit

Permalink
Merge pull request #116 from ronhanson/version-fix
Browse files Browse the repository at this point in the history
Fix to remove env variable handler on argparse.VersionAction
  • Loading branch information
bw2 authored Jan 13, 2019
2 parents 206fd8a + cbf0ed7 commit c6e8120
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configargparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ def parse_known_args(self, args = None, namespace = None,
config_file_keys = self.get_possible_config_keys(a)
if config_file_keys and not (a.env_var or a.is_positional_arg
or a.is_config_file_arg or a.is_write_out_config_file_arg or
isinstance(a, argparse._VersionAction) or
isinstance(a, argparse._HelpAction)):
stripped_config_file_key = config_file_keys[0].strip(
self.prefix_chars)
Expand Down

0 comments on commit c6e8120

Please sign in to comment.