mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #9026: Fix order of argparse sub-commands in help messages.
This commit is contained in:
parent
a6e0b4f2ed
commit
8a6a198abf
3 changed files with 84 additions and 4 deletions
|
@ -82,6 +82,7 @@ __all__ = [
|
|||
]
|
||||
|
||||
|
||||
import collections as _collections
|
||||
import copy as _copy
|
||||
import os as _os
|
||||
import re as _re
|
||||
|
@ -1041,7 +1042,7 @@ class _SubParsersAction(Action):
|
|||
|
||||
self._prog_prefix = prog
|
||||
self._parser_class = parser_class
|
||||
self._name_parser_map = {}
|
||||
self._name_parser_map = _collections.OrderedDict()
|
||||
self._choices_actions = []
|
||||
|
||||
super(_SubParsersAction, self).__init__(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue