Releases: bw2/ConfigArgParse
Releases · bw2/ConfigArgParse
1.7.5
1.7.4
Bug Fixes
- Fix environment variables being ignored when using subparsers (#350). The _find_insertion_index() method now detects subparser commands and inserts env var / config file args before the subcommand, so the parent parser processes them correctly.
Improvements
- Add input validation to ArgumentParser.init() with clear error messages (#349):
- config_file_parser_class must be a ConfigFileParser subclass (or instance); suggests formatter_class if wrong type is passed
- formatter_class validates it's a HelpFormatter subclass; suggests config_file_parser_class if swapped
- default_config_files, args_for_setting_config_path, and args_for_writing_out_config_file must be lists/tuples, not strings
- config_file_open_func must be callable
Docs
1.7.3
Bug fixes and Python 3.11+ tomllib support
Bug Fixes
- Fix TOML parser to read all matching sections instead of only the first (#346)
- Fix SyntaxError leak from ast.literal_eval in INI-style config parsers (#345)
- Fix -- separator, nargs=REMAINDER, and empty value handling (#344)
- Fix critical bugs and add Python 3.11+ tomllib support (#340)
Other
- Remove dead comment-processing code in default config parser
- Add test status badge to README
- CI, linting, and test improvements