Mercurial > python-cmd2
diff example/example.py @ 334:99dd71cb477a
run() folded into app.cmdloop()
author | cat@eee |
---|---|
date | Fri, 12 Feb 2010 23:29:19 -0500 |
parents | e9eea93c777c |
children | f16f444a4d10 |
line wrap: on
line diff
--- a/example/example.py Fri Feb 12 22:57:41 2010 -0500 +++ b/example/example.py Fri Feb 12 23:29:19 2010 -0500 @@ -1,6 +1,6 @@ '''A sample application for cmd2.''' -from cmd2 import Cmd, make_option, options, run +from cmd2 import Cmd, make_option, options import unittest, optparse, sys class CmdLineApp(Cmd): @@ -31,4 +31,4 @@ do_orate = do_speak # another synonym, but this one takes multi-line input c = CmdLineApp() -run(c) +c.cmdloop()