pypi cyclopts 3.20.0
v3.20.0

latest releases: 5.3.2, 5.3.1, 5.3.0...
17 months ago

This release contains changes that may change some behavior for some users, but is mostly benign. If using custom Group Validators, please give this release more attention.

Features

  • Give Commands/Arguments/Parameters higher priority (in that order) on the help-page. This places "Commands" at the top, and "Arguments" next to "Parameters":
    ╭─ Commands ────────────────────────────────────────────────────────────╮
    │ --help -h  Display this message and exit.                             │
    │ --version  Display application version.                               │
    ╰───────────────────────────────────────────────────────────────────────╯
    ╭─ Arguments ───────────────────────────────────────────────────────────╮
    │ *  FOO  [required]                                                    │
    ╰───────────────────────────────────────────────────────────────────────╯
    ╭─ Parameters ──────────────────────────────────────────────────────────╮
    │ *  BAR --bar  [required]                                              │
    ╰───────────────────────────────────────────────────────────────────────╯
    
    See Group.sort_key for more details.
    By @BrianPugh in #476

Bug Fixes

  • config.Env: recombine remaining_keys into a single key if the found argument doesn't have any sub-arguments. by @BrianPugh in #472
  • Always call all group-validators; provide all arguments within the group. by @BrianPugh in #473
    • Previously, only validators of groups that were provided arguments were executed. Also, only arguments that had parsed tokens were supplied. This was as bug and went against documented behavior.

Full Changelog: v3.19.0...v3.20.0

Don't miss a new cyclopts release

NewReleases is sending notifications on new releases.