diff --git a/configargparse.py b/configargparse.py index 4b93dec..33a2ccf 100644 --- a/configargparse.py +++ b/configargparse.py @@ -1447,21 +1447,24 @@ def already_on_command_line(existing_args_list, potential_command_line_args, pre # add all public classes and constants from argparse module's namespace to this # module's namespace so that the 2 modules are truly interchangeable -HelpFormatter = argparse.HelpFormatter -RawDescriptionHelpFormatter = argparse.RawDescriptionHelpFormatter -RawTextHelpFormatter = argparse.RawTextHelpFormatter +Action = argparse.Action ArgumentDefaultsHelpFormatter = argparse.ArgumentDefaultsHelpFormatter ArgumentError = argparse.ArgumentError ArgumentTypeError = argparse.ArgumentTypeError -Action = argparse.Action FileType = argparse.FileType +HelpFormatter = argparse.HelpFormatter +MetavarTypeHelpFormatter = argparse.MetavarTypeHelpFormatter Namespace = argparse.Namespace +RawDescriptionHelpFormatter = argparse.RawDescriptionHelpFormatter +RawTextHelpFormatter = argparse.RawTextHelpFormatter ONE_OR_MORE = argparse.ONE_OR_MORE OPTIONAL = argparse.OPTIONAL +PARSER = argparse.PARSER REMAINDER = argparse.REMAINDER SUPPRESS = argparse.SUPPRESS ZERO_OR_MORE = argparse.ZERO_OR_MORE + # deprecated PEP-8 incompatible API names. initArgumentParser = init_argument_parser getArgumentParser = get_argument_parser diff --git a/setup.py b/setup.py index c0bc0b7..116db24 100644 --- a/setup.py +++ b/setup.py @@ -82,7 +82,7 @@ def launch_http_server(directory): setup( name='ConfigArgParse', - version="1.5.5", + version="1.7", description='A drop-in replacement for argparse that allows options to ' 'also be set via config files and/or environment variables.', long_description=long_description,