class_docstr: 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.
  
  A Cmd instance or subclass instance is a line-oriented interpreter
  framework.  There is no good reason to instantiate Cmd itself; rather,
  it's useful as a superclass of an interpreter class you define yourself
  in order to inherit Cmd's methods and encapsulate action methods.
class_docstr_tok: ["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",".","A","Cmd","instance","or","subclass","instance","is","a","line-oriented","interpreter","framework",".","There","is","no","good","reason","to","instantiate","Cmd","itself",";","rather",",","it","'s","useful","as","a","superclass","of","an","interpreter","class","you","define","yourself","in","order","to","inherit","Cmd","'s","methods","and","encapsulate","action","methods","."]
docstr: 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.
docstr_tok: ["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","."]
code: def onecmd(self, line):
      """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.
  
      """
      cmd, arg, line = self.parseline(line)
      if not line:
          return self.emptyline()
      if cmd is None:
          return self.default(line)
      self.lastcmd = line
      if line == "EOF":
          self.lastcmd = ""
      if cmd == "":
          return self.default(line)
      else:
          try:
              func = getattr(self, "do_" + cmd)
          except AttributeError:
              return self.default(line)
          return func(arg)
  
file_path: catboost/contrib/tools/python3/src/Lib/cmd.py
imports: import string, sys
label_desc: Use image node_id 8 for calling the Cmd obj's underlying member method code with example usage: obj.onecmd(line) and returns: self, self, self, func, self