cmd

cmd — Support for line-oriented command interpreters

Source code: Lib/cmd.py

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.

class cmd.Cmd([completekey[, stdin[, stdout]]])

A Cmd instance or subclass instance is a line-oriented interpreter framework. There is no good reason to instantiate 登录查看完整内容