LWN.net Logo

argparse 1.0.1 released

From:  Steven Bethard <steven.bethard-AT-gmail.com>
To:  Argparse Users <argparse-users-AT-googlegroups.com>, Python Announce <python-announce-list-AT-python.org>, Python List <python-list-AT-python.org>
Subject:  [ANN] argparse 1.0.1 - Command-line parsing library
Date:  Mon, 14 Sep 2009 23:16:00 -0700
Message-ID:  <d11dcfba0909142316k28ae03ddy42ffb86a49f93cc3@mail.gmail.com>
Archive-link:  Article, Thread

=========================
Announcing argparse 1.0.1
=========================
The argparse module provides an easy, declarative interface for
creating command line tools, which knows how to:
 * parse the arguments and flags from sys.argv
 * convert arg strings into objects for your program
 * format and print informative help messages
 * and much more...

The argparse module improves on the standard library optparse module
in a number of ways including:
 * handling positional arguments
 * supporting sub-commands
 * allowing alternative option prefixes like + and /
 * handling zero-or-more and one-or-more style arguments
 * producing more informative usage messages
 * providing a much simpler interface for custom types and actions

Download argparse
=================
The argparse homepage has links for source, MSI and single file
distributions of argparse:
  http://code.google.com/p/argparse/

About this release
==================
This is a bugfix release. Various small bugs were squashed, most notably the
silencing of the Python 2.6 buggy Exception.message warnings. See the news
file for detailed information:
  http://argparse.googlecode.com/svn/tags/r101/NEWS.txt
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

        Support the Python Software Foundation:
        http://www.python.org/psf/donations/



(Log in to post comments)

argparse 1.0.1 released

Posted Sep 26, 2009 20:31 UTC (Sat) by TRauMa (guest, #16483) [Link]

Argparse is very neat and indeed more flexible and intuitive then optparse. It's very easy to just inline it in your programs if you don't want the additional dependency.

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds