A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-April/099545.html below:

[Python-Dev] Python 2.7b1 and argparse's version action

[Python-Dev] Python 2.7b1 and argparse's version action [Python-Dev] Python 2.7b1 and argparse's version actionBarry Warsaw barry at python.org
Mon Apr 19 04:19:46 CEST 2010
On Apr 18, 2010, at 07:30 PM, Eric Smith wrote:

>Steven Bethard wrote:
>> By the way, we could simplify the typical add_argument usage by adding
>> "show program's version number and exit" as the default help for the
>> 'version' action. Then you should just write:
>> 
>>     parser.add_argument('--version', action='version', version='<the version>')
>
>I like this the best. I don't like argparse adding arguments for me.

I concur.  This gives me all the flexibility I need to make my programs accept
exactly the arguments I want and print exactly the information I want to
present.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100418/a971920c/attachment.pgp>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4