Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a77f02 commit 2ac39cbCopy full SHA for 2ac39cb
1 file changed
Lib/argparse.py
@@ -280,7 +280,7 @@ def add_argument(self, action):
280
if action.help is not SUPPRESS:
281
282
# find all invocations
283
- get_invocation = self._format_action_invocation
+ get_invocation = lambda x: self._decolor(self._format_action_invocation(x))
284
invocation_lengths = [len(get_invocation(action)) + self._current_indent]
285
for subaction in self._iter_indented_subactions(action):
286
invocation_lengths.append(len(get_invocation(subaction)) + self._current_indent)
0 commit comments