diff example/example.py @ 290:cd12e4e0fa17

show -l working
author catherine@bothari
date Fri, 06 Nov 2009 21:41:55 -0500
parents 1cd23003e8d5
children dfdbd93a2fae
line wrap: on
line diff
--- a/example/example.py	Thu Oct 29 16:17:58 2009 -0400
+++ b/example/example.py	Fri Nov 06 21:41:55 2009 -0500
@@ -7,7 +7,7 @@
     multilineCommands = ['orate']
     Cmd.shortcuts.update({'&': 'speak'})
     maxrepeats = 3
-    Cmd.settable.append('maxrepeats')
+    Cmd.settable.append('maxrepeats   Max number of `--repeat` allowed')
 
     @options([make_option('-p', '--piglatin', action="store_true", help="atinLay"),
               make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),
@@ -43,6 +43,5 @@
     sys.argv = [sys.argv[0]] # the --test argument upsets unittest.main()
     unittest.main()
 else:
-    pass
-    #CmdLineApp().cmdloop()
+    CmdLineApp().cmdloop()