Skip to content

1.10.1

Latest

Choose a tag to compare

@bw2 bw2 released this 17 Nov 02:53

Fixes two regressions in 1.10.0.

  • Lists before a subcommand work again when the option that ends them comes from another source. For a nargs='+' or nargs='*' option, 1.10.0 stops with an error when a config file or env var list would swallow a subcommand, unless an option after the list ends it. When the list and that option came from different sources, 1.10.0 could miss the option and stop with the error anyway: with FILES="[a, b]" set and name = x in a config file, prog run failed. It now gives files=['a', 'b'] and name='x' and treats run as a subcommand, as 1.9.0 did.
  • Count options accept values like +2 again. 1.10.0 accepted only digits as the number for a count option in a config file or env var, so values that 1.9.0 accepted, such as +2, 1_000 or an env var value that ends in a newline, became errors. They work again. A negative number such as -1 is still an error (1.9.0 ignored it).

Full changelog: v1.10.0...v1.10.1