Repository navigation
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='+'ornargs='*'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: withFILES="[a, b]"set andname = xin a config file,prog runfailed. It now givesfiles=['a', 'b']andname='x'and treatsrunas a subcommand, as 1.9.0 did. - Count options accept values like
+2again. 1.10.0 accepted only digits as the number for acountoption in a config file or env var, so values that 1.9.0 accepted, such as+2,1_000or an env var value that ends in a newline, became errors. They work again. A negative number such as-1is still an error (1.9.0 ignored it).
Full changelog: v1.10.0...v1.10.1