There already is a module named cmd2: <a href="http://pypi.python.org/pypi/cmd2">http://pypi.python.org/pypi/cmd2</a><br><br>-- Devin<br><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 1:11 AM,  <span dir="ltr"><<a href="mailto:anntzer.lee@gmail.com">anntzer.lee@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I would like to announce the first public release of cmd2, an extension of the standard library's cmd with argument parsing, here: <a href="https://github.com/anntzer/cmd2" target="_blank">https://github.com/anntzer/cmd2</a>.<br>


<br>
Cmd2 is an extension built around the excellent cmd module of the standard<br>
library.  Cmd allows one to build simple custom shells using ``do_*`` methods,<br>
taking care in particular of the REPL loop and the interactive help.  However,<br>
no facility is given for parsing the argument line (do_* methods are passed the<br>
rest of the line as a single string argument).<br>
<br>
With Cmd2, ``do_*`` methods are type-annotated, either using Python 3's<br>
function annotation syntax, or with an ad-hoc ``annotate`` decorator, allowing<br>
the dispatcher to parse the argument list for them.<br>
<br>
Antony Lee<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>