PyDocs

Nav

Command-line interface libraries

Cmd.onecmd

cmd

method of Cmd (source)
  • Cmd.onecmd(str)
Interpret the argument as though it had been typed in response
to the prompt.

This may be overridden, but should not normally need to be;
see the precmd() and postcmd() methods for useful execution hooks.
The return value is a flag indicating whether interpretation of
commands by the interpreter should stop.
0 Examples
No examples for cmd/Cmd.onecmd.
See Also
No see-alsos for cmd/Cmd.onecmd
0 Notes
No notes for Cmd.onecmd