Mercurial > sqlpython
view testcmd.py @ 43:abbfb5a7e32c
removed debg, whatever that is
author | devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil |
---|---|
date | Mon, 04 Feb 2008 15:50:02 -0500 |
parents | 2739250177ed |
children |
line wrap: on
line source
import cmd2 class test(cmd2.Cmd): binarypar = True def do_sing(self, arg): '''Sings. Hums if it has to fake it.''' print arg or 'hmm hmm hmm' def do_shout(self, arg): print arg.upper() def do_quit(self, arg): return 1 multilineCommands = ['shout'] t = test() t.cmdloop()