comparison testcmd.py @ 30:2739250177ed

load fixed?
author devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil
date Fri, 21 Dec 2007 14:00:11 -0500
parents dd1cc6630a65
children
comparison
equal deleted inserted replaced
29:a6f68b25ae16 30:2739250177ed
1 import cmd2 1 import cmd2
2 2
3 class test(cmd2.Cmd): 3 class test(cmd2.Cmd):
4 binarypar = True 4 binarypar = True
5 settable = ['prompt', 'binarypar']
6 def do_sing(self, arg): 5 def do_sing(self, arg):
7 '''Sings. 6 '''Sings.
8 7
9 Hums if it has to fake it.''' 8 Hums if it has to fake it.'''
10 print arg or 'hmm hmm hmm' 9 print arg or 'hmm hmm hmm'