Home | History | Annotate | Download | only in Lib

Lines Matching refs:Cmd

47 __all__ = ["Cmd"]
49 PROMPT = '(Cmd) '
52 class Cmd:
58 A Cmd instance or subclass instance is a line-oriented interpreter
59 framework. There is no good reason to instantiate Cmd itself; rather,
61 in order to inherit Cmd's methods and encapsulate action methods.
189 cmd, arg = line[:i], line[i:].strip()
190 return cmd, arg, line
202 cmd, arg, line = self.parseline(line)
205 if cmd is None:
210 if cmd == '':
214 func = getattr(self, 'do_' + cmd)
265 cmd, args, foo = self.parseline(line)
266 if cmd == '':
270 compfunc = getattr(self, 'complete_' + cmd)
293 'List available commands with "help" or detailed help with "help cmd".'
325 cmd=name[3:]
326 if cmd in help:
327 cmds_doc.append(cmd)
328 del help[cmd]
330 cmds_doc.append(cmd)
332 cmds_undoc.append(cmd)