Skip to content

v0.9.4 - fix --n on Python 3.9 / 3.11

Choose a tag to compare

@Kenzy-Zero Kenzy-Zero released this 24 Jul 14:19
· 9 commits to main since this release

Fixed

--n no longer fails with ambiguous option on Python 3.9 and 3.11.

argparse treats an unrecognised long option as an abbreviation, so --n matched both --no-disk-check and --no-history and the parse failed before the subcommand ever saw the flag. Python 3.13 tolerated it, which is why it wasn't caught locally.

This affected peek --n, sample --n and head --n in every previous release - not only the filter --n / dedup --n added in 0.9.3. Nothing had ever exercised --n through the real CLI, so no test failed.

Fixed by disabling argparse option abbreviation (allow_abbrev=False) on the main parser and every subcommand. Long options must now be written in full, which every documented example already did. A regression test now runs all five --n commands as real subprocesses.

If you are on Python 3.9 or 3.11, upgrade past 0.9.3.