Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Lib/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,13 @@ def __init__(
indent_increment=2,
max_help_position=24,
width=None,
color=True,
):
# default setting for width
if width is None:
import shutil
width = shutil.get_terminal_size().columns
width -= 2

self._set_color(color)
self._prog = prog
self._indent_increment = indent_increment
self._max_help_position = min(max_help_position,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove ``color`` parameter from :class:`argparse.HelpFormatter` constructor. Color is controlled by :class:`ArgumentParser`.
Loading