This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: optparse indents without respect to $COLUMNS
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gward Nosy List: gward, ianbicking, jlgijsbers
Priority: low Keywords:

Created on 2004-01-16 18:50 by ianbicking, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg19717 - (view) Author: Ian Bicking (ianbicking) * Date: 2004-01-16 18:50
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)
msg19718 - (view) Author: Greg Ward (gward) (Python committer) Date: 2004-07-24 20:23
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...
msg19719 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-08-21 11:31
Logged In: YES 
user_id=469548

Closing: seems like Greg's been hustling. <wink>
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39829
2004-01-16 18:50:56ianbickingcreate