Releases: janluke/cloup
Releases · janluke/cloup
v0.10.0 - Aliases and generic command decorators
v0.9.1
- Fixed bug: shell completion breaking because Cloup checking constraints despite
ctx.resilient_parsing=True
- Added public attributes to
ConstraintMixin
:optgroup_constraints
,param_constraints
andall_constraints
. - Cleaned up code and added other type hints (to internal code).
- Fixed and improved docs. Fixed dark theme styling.
v0.9.0
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 aRowSepPolicy
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
andrequire_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
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
ofGroup
(andgroup()
) was renamed toalign_sections
; - The argument
sorted_
ofGroupSection.__init__()
argument was renamed tosorted
.
Other changes
- Additional signature for
option_group
: you can pass thehelp
argument
as 2nd positional argument. - Aligned option groups (option
align_option_groups
with defaultTrue
). - More refactoring and testing.
v0.2.0 - Introducing Group sections
New features
- Add possibility of organizing subcommands of a
cloup.Group
in multiple help sections (#1). - Various code improvements.
Backward incompatible changes
- Rename
CloupCommand
andCloupGroup
resp. to justCommand
andGroup
.