Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #13150

Re: optionparse: how to add a line break to the help text

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'versions.': 0.07; 'python': 0.08; 'url:pypi': 0.08; 'deprecated,': 0.09; 'optparse': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'underlying': 0.09; 'am,': 0.12; 'library': 0.15; 'argparse': 0.16; 'backported': 0.16; 'codebase,': 0.16; 'enigma': 0.16; 'finney': 0.16; 'kern': 0.16; 'py2.6': 0.16; 'wrote:': 0.16; '2.x': 0.18; 'subject:help': 0.22; 'header:In-Reply-To:1': 0.22; 'versions': 0.23; 'debian': 0.23; 'dropped': 0.23; "wasn't": 0.28; 'interpret': 0.29; 'replaced': 0.29; 'earlier': 0.32; 'to:addr :python-list': 0.33; 'header:User-Agent:1': 0.34; 'header:X -Complaints-To:1': 0.35; 'subject:text': 0.35; 'url:python': 0.36; 'minimal': 0.37; 'run': 0.37; 'but': 0.37; 'think': 0.38; 'received:org': 0.38; 'url:org': 0.38; 'subject:: ': 0.39; 'manually': 0.39; 'received:rr.com': 0.39; 'header:Mime- Version:1': 0.39; 'to:addr:python.org': 0.39; 'your': 0.61; 'world': 0.62; 'our': 0.63; 'wide': 0.63; 'believe': 0.65; 'series': 0.65; 'became': 0.67; 'care': 0.71; 'subject:line': 0.73; 'eco': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robert Kern <robert.kern@gmail.com>
Subject Re: optionparse: how to add a line break to the help text
Date Sun, 11 Sep 2011 15:22:28 -0500
Organization The Church of Last Thursday
References <j4gi5r$gjc$1@dough.gmane.org> <mailman.952.1315693006.27778.python-list@python.org> <op.v1mdm0oba8ncjz@gnudebst> <j4h4dh$60n$1@dough.gmane.org> <4E6C182D.60905@tim.thechases.com> <j4h8lh$qui$1@dough.gmane.org> <4E6C9614.60406@tim.thechases.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host rrcs-97-77-122-57.sw.biz.rr.com
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
In-Reply-To <4E6C9614.60406@tim.thechases.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1008.1315772560.27778.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1315772560 news.xs4all.nl 2505 [2001:888:2000:d::a6]:49998
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:13150

Show key headers only | View raw


On 9/11/11 6:05 AM, Tim Chase wrote:

> As Ben Finney replied, optparse is now deprecated, replaced in part by argparse.
> Unfortunately, argparse wasn't backported to the standard library for earlier
> 2.x series (I think it became available in 2.7, and may run in earlier versions
> if manually added like I had to do on my Debian Py2.6 install). But that makes
> it hard for those of us who want to use a built-in option-parsing library across
> a wide variety of Python versions. I don't strongly care which I use except that
> I want it to be broadly available with minimal fuss.

argparse.py can be simply dropped into your codebase, if you want. That's about 
as minimal of fuss as you can ask for.

   http://pypi.python.org/pypi/argparse

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: optionparse: how to add a line break to the help text Rafael Durán Castañeda <rafadurancastaneda@gmail.com> - 2011-09-11 00:16 +0200
  Re: optionparse: how to add a line break to the help text "Rhodri James" <rhodri@wildebst.demon.co.uk> - 2011-09-11 02:12 +0100
    Re: optionparse: how to add a line break to the help text Gelonida N <gelonida@gmail.com> - 2011-09-11 03:54 +0200
    Re: optionparse: how to add a line break to the help text Tim Chase <python.list@tim.thechases.com> - 2011-09-10 21:08 -0500
    Re: optionparse: how to add a line break to the help text Gelonida N <gelonida@gmail.com> - 2011-09-11 05:07 +0200
      Re: optionparse: how to add a line break to the help text Ben Finney <ben+python@benfinney.id.au> - 2011-09-11 15:20 +1000
        Re: optionparse: how to add a line break to the help text Gelonida N <gelonida@gmail.com> - 2011-09-11 16:30 +0200
    Re: optionparse: how to add a line break to the help text Tim Chase <python.list@tim.thechases.com> - 2011-09-11 06:05 -0500
    Re: optionparse: how to add a line break to the help text Robert Kern <robert.kern@gmail.com> - 2011-09-11 15:22 -0500

csiph-web