# HG changeset patch # User devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil # Date 1198176536 18000 # Node ID dd1cc6630a659fe41cb84d5045f58709a05f2e25 # Parent ca6f34be3397c331c9d60bb53e00366c8ddef071 test files diff -r ca6f34be3397 -r dd1cc6630a65 testcmd.py --- /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 diff -r ca6f34be3397 -r dd1cc6630a65 testsongs.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testsongs.txt Thu Dec 20 13:48:56 2007 -0500 @@ -0,0 +1,11 @@ +sing +shout; +shout oh my +darling +clementine +; +shout +even +more + +sing this song