ANN: cmd2, an extenstion of cmd that parses its argument line

Devin Jeanpierre jeanpierreda at gmail.com
Mon Mar 19 04:00:06 EDT 2012


There already is a module named cmd2: http://pypi.python.org/pypi/cmd2

-- Devin

On Mon, Mar 19, 2012 at 1:11 AM, <anntzer.lee at gmail.com> wrote:

> Dear all,
>
> I would like to announce the first public release of cmd2, an extension of
> the standard library's cmd with argument parsing, here:
> https://github.com/anntzer/cmd2.
>
> Cmd2 is an extension built around the excellent cmd module of the standard
> library.  Cmd allows one to build simple custom shells using ``do_*``
> methods,
> taking care in particular of the REPL loop and the interactive help.
>  However,
> no facility is given for parsing the argument line (do_* methods are
> passed the
> rest of the line as a single string argument).
>
> With Cmd2, ``do_*`` methods are type-annotated, either using Python 3's
> function annotation syntax, or with an ad-hoc ``annotate`` decorator,
> allowing
> the dispatcher to parse the argument list for them.
>
> Antony Lee
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120319/ccd089ea/attachment.html>


More information about the Python-list mailing list