view testcmd.py @ 99:f65de7b5051e

modules were missing from setup.py
author catherine@localhost
date Wed, 28 May 2008 09:23:57 -0400
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()