Mercurial > sqlpython
comparison 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 |
comparison
equal
deleted
inserted
replaced
27:ca6f34be3397 | 28:dd1cc6630a65 |
---|---|
1 import cmd2 | |
2 | |
3 class test(cmd2.Cmd): | |
4 binarypar = True | |
5 settable = ['prompt', 'binarypar'] | |
6 def do_sing(self, arg): | |
7 '''Sings. | |
8 | |
9 Hums if it has to fake it.''' | |
10 print arg or 'hmm hmm hmm' | |
11 def do_shout(self, arg): | |
12 print arg.upper() | |
13 def do_quit(self, arg): | |
14 return 1 | |
15 multilineCommands = ['shout'] | |
16 | |
17 t = test() | |
18 t.cmdloop() |