[ python-Bugs-878453 ] optparse indents without respect to $COLUMNS

SourceForge.net noreply at sourceforge.net
Sun Feb 8 22:17:11 EST 2004


Bugs item #878453, was opened at 2004-01-16 13:50
Message generated for change (Settings changed) made by rhettinger
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: None
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)


----------------------------------------------------------------------

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