Mercurial > python-cmd2
diff example/example.py @ 326:237a89d5a4a9
run() working
author | catherine@dellzilla |
---|---|
date | Thu, 11 Feb 2010 17:47:29 -0500 |
parents | 4172feeddf76 |
children | e9eea93c777c |
line wrap: on
line diff
--- a/example/example.py Thu Feb 11 17:03:45 2010 -0500 +++ b/example/example.py Thu Feb 11 17:47:29 2010 -0500 @@ -31,8 +31,9 @@ do_orate = do_speak # another synonym, but this one takes multi-line input c = CmdLineApp() -#run(c) +run(c) +''' class TestMyAppCase(Cmd2TestCase): CmdApp = CmdLineApp parser = optparse.OptionParser() @@ -44,4 +45,4 @@ sys.argv = [sys.argv[0]] # the --test argument upsets unittest.main() unittest.main() else: - CmdLineApp().cmdloop() + CmdLineApp().cmdloop()'''