Home | History | Annotate | Download | only in python2.7

Lines Matching defs:Cmd

50 __all__ = ["Cmd"]
52 PROMPT = '(Cmd) '
55 class Cmd:
61 A Cmd instance or subclass instance is a line-oriented interpreter
62 framework. There is no good reason to instantiate Cmd itself; rather,
64 in order to inherit Cmd's methods and encapsulate action methods.
193 cmd, arg = line[:i], line[i:].strip()
194 return cmd, arg, line
206 cmd, arg, line = self.parseline(line)
209 if cmd is None:
214 if cmd == '':
218 func = getattr(self, 'do_' + cmd)
269 cmd, args, foo = self.parseline(line)
270 if cmd == '':
274 compfunc = getattr(self, 'complete_' + cmd)
297 'List available commands with "help" or detailed help with "help cmd".'
329 cmd=name[3:]
330 if cmd in help:
331 cmds_doc.append(cmd)
332 del help[cmd]
334 cmds_doc.append(cmd)
336 cmds_undoc.append(cmd)