v2.4.0
Features
- Added
asyncfunction support by @nesb1 in #112 - Introduces a new exception:
UnknownOptionError(see "Breaking Changes" below).
Breaking Changes
The following outlines incredibly-minor breaking changes:
- Introduces a new exception:
UnknownOptionError. - Change negative-flag-assignment-exception from
ValidationErrorto genericCycloptsError(ValidationErrorinherits fromCycloptsError).- e.g.
--no-flag=Truenow raisesCycloptsErrorinstead ofValidationError. - This may only impact people who were specifically catching a
ValidationErrorfor this in a meta-app. This is an esoteric scenario that I imagine it doesn't exist in the wild.
- e.g.
- Change exception for unknown option token from
ValidationErrortoUnknownOptionError.- I also imagine this is a rare currently-in-the-wild scenario; anyone attempting to catch this exception in a meta-app is probably catching a
CycloptsErrorinstead of aValidationError.
- I also imagine this is a rare currently-in-the-wild scenario; anyone attempting to catch this exception in a meta-app is probably catching a
Bug Fixes
- Fixed incorrectly python_variable->cli_option translated names. Addresses #110.
- Fixes indexing errors when validators/converters raise exceptions without messages.
New Contributors
Full Changelog: v2.3.2...v2.4.0