The Cmd class provides a simple framework for writing line-oriented command interpreters. These are often useful for ...
docs.python.org