gh-145990: Sort `python --help-xoptions` by option name (GH-145991) · python/cpython@b062f39 · GitHub
Skip to content

Commit b062f39

Browse files
authored
gh-145990: Sort python --help-xoptions by option name (GH-145991)
* Sort --help-xoptions alphabetically by name. * add a sorting regression test in test_help_xoptions
1 parent f7cb789 commit b062f39

3 files changed

Lines changed: 22 additions & 16 deletions

File tree

Lib/test/test_cmd_line.py

Lines changed: 4 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``python --help-xoptions`` is now sorted by ``-X`` option name.

Python/initconfig.c

Lines changed: 17 additions & 16 deletions

0 commit comments

Comments
 (0)