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


Groups > comp.lang.python.announce > #553 > unrolled thread

cmd2, an extenstion of cmd that parses its argument list

Started byanntzer.lee@gmail.com
First post2012-03-18 22:12 -0700
Last post2012-03-18 22:12 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python.announce


Contents

  cmd2, an extenstion of cmd that parses its argument list anntzer.lee@gmail.com - 2012-03-18 22:12 -0700

#553 — cmd2, an extenstion of cmd that parses its argument list

Fromanntzer.lee@gmail.com
Date2012-03-18 22:12 -0700
Subjectcmd2, an extenstion of cmd that parses its argument list
Message-ID<mailman.806.1332163404.3037.python-announce-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python.announce


csiph-web