v3.8.0
Features
- Add extension checking to
cyclopts.validators.Path. By @BrianPugh in #329- e.g.
Annotated[Path, Parameter(validator=validators.Path(ext=(.jpg, .jpeg)))]. - Add some convenience types for common-extensions:
If you have a suggestion for a common file extension to add, please open an issue and we can handle it on a case-by-case basis.
BinPath ExistingBinPath CsvPath ExistingCsvPath ImagePath ExistingImagePath JsonPath ExistingJsonPath Mp4Path ExistingMp4Path TomlPath ExistingTomlPath TxtPath ExistingTxtPath YamlPath ExistingYamlPath
- e.g.
Bug fixes
- Fix incorrect parsing of
-jflag by @BrianPugh in #330
Full Changelog: v3.7.0...v3.8.0