GNU Info

Info Node: (python2.1-lib.info)cmd

(python2.1-lib.info)cmd


Next: shlex Prev: calendar Up: Miscellaneous Services
Enter node , (file) or (file)node

Support for line-oriented command interpreters
==============================================

This manual section was written by Eric S. Raymond
<esr@snark.thyrsus.com>.
Build line-oriented command interpreters.

The `Cmd' class provides a simple framework for writing line-oriented
command interpreters.  These are often useful for test harnesses,
administrative tools, and prototypes that will later be wrapped in a
more sophisticated interface.

`Cmd()'
     A `Cmd' instance or subclass instance is a line-oriented
     interpreter framework.  There is no good reason to instantiate
     `Cmd' itself; rather, it's useful as a superclass of an
     interpreter class you define yourself in order to inherit `Cmd''s
     methods and encapsulate action methods.

Cmd Objects

automatically generated by info2www version 1.2.2.9