Repository navigation
v5.4.0
Features
App.argfile_prefixreads CLI arguments from files, like argparse'sfromfile_prefix_chars. WithApp(argfile_prefix="@"), a token like@run.argsis replaced by the file's lines (one argument per line), and files may reference other files. @yash-bitla #1043
Bug Fixes
Meta Apps & Combined Short Flags
- An unknown combined short flag is reported whole instead of blaming a meta-app option. #1040
- A meta option inside a combined short token takes all of its values. #1042
- Combined short flags with an
=value (e.g.-vn=bob) no longer misbind in meta apps. #1041
Other
- An app run with
python -m mypkgis named after the module in help and usage-strings, matching argparse. @Rahul-cs50 #1053 - Pydantic URL types (
HttpUrl,AnyUrl, ...) and other custom-schema types are parsed as a single value instead of recursing forever. #1048 - A
CoercionErrorraised byconvert()(e.g. inside a custom converter) can be printed instead of raisingAssertionError. @gal-a #1047 - Shell-completion generation skips
Parameter(parse=False)arguments, so an injected dependency whose type is only imported underTYPE_CHECKINGno longer raisesNameError. @damvolkov #1045
Maintenance
- The release workflow uses
pypi-publishv1.14.3 (addresses a compromised Sigstore CA), and Dependabot now keeps GitHub Actions up to date. #1054 - Dependency and GitHub Actions bumps. #1049, #1050, #1051, #1055, #1056, #1057, #1058
New Contributors
- @gal-a made their first contribution in #1047
- @damvolkov made their first contribution in #1045
Full Changelog: v5.3.3...v5.4.0