Skip to content

Releases: janluke/cloup

v0.10.0 - Aliases and generic command decorators

v0.9.1

03 Jul 19:56
Compare
Choose a tag to compare
  • Fixed bug: shell completion breaking because Cloup checking constraints despite ctx.resilient_parsing=True
  • Added public attributes to ConstraintMixin: optgroup_constraints, param_constraints and all_constraints.
  • Cleaned up code and added other type hints (to internal code).
  • Fixed and improved docs. Fixed dark theme styling.

v0.9.0

30 Jun 21:44
Compare
Choose a tag to compare

Summary

  • Enhanced IDE experience thanks to the detailed type hints for @command, @group, @argument and @option. #47, #50
  • You can now use constraints as decorators to avoid specifying parameters by name. [Breaking change]. #8
  • The formatter setting row_sep can now take a RowSepPolicy that decides whether to use a row separator (e.g. an empty line) for each definition list independently, e.g. based on the number of definitions taking multiple lines. #37
  • Added the require_any and require_one constraints (as aliases). #57
  • Simplified and improved the error argument of Rephraser. Reusing the original error message to add extra info is easy now. #54
  • A few minor bugs were fixed.
  • Made the docs more readable.

Details

You can find a much more detailed changelog on the website:
https://cloup.readthedocs.io/en/stable/pages/changelog.html#v0-9-0-2021-06-30

v0.3.0 - API changes and aligned option groups

26 Mar 00:57
Compare
Choose a tag to compare

Backwards incompatible API changes

  • option_groups decorator now takes the list of options as positional arguments *options;
  • Group.section decorator now takes the list of sections as positional arguments *sections;
  • The argument align_sections_help of Group (and group()) was renamed to align_sections;
  • The argument sorted_ of GroupSection.__init__() argument was renamed to sorted.

Other changes

  • Additional signature for option_group: you can pass the help argument
    as 2nd positional argument.
  • Aligned option groups (option align_option_groups with default True).
  • More refactoring and testing.

v0.2.0 - Introducing Group sections

13 Mar 22:27
Compare
Choose a tag to compare

New features

  • Add possibility of organizing subcommands of a cloup.Group in multiple help sections (#1).
  • Various code improvements.

Backward incompatible changes

  • Rename CloupCommand and CloupGroup resp. to just Command and Group.