[ python-Bugs-878453 ] optparse indents without respect to $COLUMNS
SourceForge.net
noreply at sourceforge.net
Sat Aug 21 13:31:08 CEST 2004
Bugs item #878453, was opened at 2004-01-16 19:50
Message generated for change (Comment added) made by jlgijsbers
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=878453&group_id=5470
Category: Python Library
Group: Python 2.4
>Status: Closed
Resolution: Fixed
Priority: 4
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: Johannes Gijsbers (jlgijsbers)
Date: 2004-08-21 13:31
Message:
Logged In: YES
user_id=469548
Closing: seems like Greg's been hustling. <wink>
----------------------------------------------------------------------
Comment By: Greg Ward (gward)
Date: 2004-07-24 22: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