Mercurial > sqlpython
diff testcmd.py @ 28:dd1cc6630a65
test files
author | devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil |
---|---|
date | Thu, 20 Dec 2007 13:48:56 -0500 |
parents | |
children | 2739250177ed |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testcmd.py Thu Dec 20 13:48:56 2007 -0500 @@ -0,0 +1,18 @@ +import cmd2 + +class test(cmd2.Cmd): + binarypar = True + settable = ['prompt', 'binarypar'] + 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() \ No newline at end of file