Skip to content

v2.4.0

Choose a tag to compare

@BrianPugh BrianPugh released this 24 Feb 20:21
ed8bc2a

Features

  • Added async function 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 ValidationError to generic CycloptsError (ValidationError inherits from CycloptsError).
    • e.g. --no-flag=True now raises CycloptsError instead of ValidationError.
    • This may only impact people who were specifically catching a ValidationError for this in a meta-app. This is an esoteric scenario that I imagine it doesn't exist in the wild.
  • Change exception for unknown option token from ValidationError to UnknownOptionError.
    • 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 CycloptsError instead of a ValidationError.

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