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.
The optional argument is the readline name of a completion
key; it defaults to Tab. If completekey is not None
and readline is available, command completion is done
automatically.