Skip to content

Commit a1785a2

Browse files
committed
Add --set as an alias for --update
Because I found myself writing check-python-versions --set 3.10-3.14 and having to go back and change the --set to --update.
1 parent 2828095 commit a1785a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Changelog
99
- Mention the ``--allow-non-packages`` option when showing the error message
1010
that rejects non-packages.
1111

12+
- Add ``--set`` as an alias for ``--update``.
13+
1214

1315
0.23.0 (2025-10-14)
1416
-------------------

src/check_python_versions/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ def _main() -> None:
390390
group.add_argument('--drop', metavar='VERSIONS', type=parse_version_list,
391391
help='drop these versions from supported ones, e.g'
392392
' --drop 2.6,3.4')
393-
group.add_argument('--update', metavar='VERSIONS', type=parse_version_list,
393+
group.add_argument('--update', '--set', metavar='VERSIONS',
394+
type=parse_version_list,
394395
help='update the set of supported versions, e.g.'
395396
' --update 2.7,3.5-3.7')
396397
group.add_argument('--diff', action='store_true',

0 commit comments

Comments
 (0)