![]() ![]() Repeatedly issue a prompt, accept input, parse an initial prefix off the Use_rawinput attribute to False, otherwise stdin will beĪ Cmd instance has the following methods: Cmd. If you want a given stdin to be used, make sure to set the instance’s If not specified, they will default to sys.stdin and Objects that the Cmd instance or subclass instance will use for input and The optional arguments stdin and stdout specify the input and output file Readline is available, command completion is done automatically. The optional argument completekey is the readline name of a completion To inherit Cmd’s methods and encapsulate action methods. It’s useful as a superclass of an interpreter class you define yourself in order There is no good reason to instantiate Cmd itself rather, Cmd ( completekey = 'tab', stdin = None, stdout = None ) ¶Ī Cmd instance or subclass instance is a line-oriented interpreterįramework. Tools, and prototypes that will later be wrapped in a more sophisticated These are often useful for test harnesses, administrative The Cmd class provides a simple framework for writing line-orientedĬommand interpreters. Cmd - Support for line-oriented command interpreters ¶ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |