[ python-Bugs-878453 ] optparse indents without respect to $COLUMNS
SourceForge.net
noreply at sourceforge.net
Sat Jul 24 22:23:52 CEST 2004
Bugs item #878453, was opened at 2004-01-16 13:50
Message generated for change (Comment added) made by gward
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=878453&group_id=5470
Category: Python Library
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Ian Bicking (ianbicking)
Assigned to: Greg Ward (gward)
Summary: optparse indents without respect to $COLUMNS
Initial Comment:
optparse should pay attention to the $COLUMNS
environmental variable if it is available.
optparse.IndentedHelpFormatter.__init__ should take
None as the default for width, and do something like:
if width is None: width = os.environ.get('COLUMNS', 80)
Better if it's put in HelpFormatter, so that
IndentedHelpFormatter and TitledHelpFormatter both act
the same.
(Python 2.3.3, FreeBSD)
----------------------------------------------------------------------
>Comment By: Greg Ward (gward)
Date: 2004-07-24 16:23
Message:
Logged In: YES
user_id=14422
OK, just checked in a fix in the Optik CVS:
lib/help.py rev 1.13
test/test_optik.py rev rev 1.29
Marking this bug fixed but still open, since it's not in
Python's CVS yet. If I hustle, I should be able to get it
into Python 2.4...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=878453&group_id=5470
More information about the Python-bugs-list
mailing list