Skip to content

Commit

Permalink
Fix to remove env variable handler on argparse.VersionAction
Browse files Browse the repository at this point in the history
  • Loading branch information
ronhanson committed Mar 14, 2018
1 parent 2c743df commit cbf0ed7
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 cbf0ed7

Please sign in to comment.