diff options
| author | cat <cat@eee> | 2010-02-12 23:29:19 -0500 |
|---|---|---|
| committer | cat <cat@eee> | 2010-02-12 23:29:19 -0500 |
| commit | 03ff164921c7da1b52cfc9129b393502d7567f27 (patch) | |
| tree | 163e3cd8315686d80b7955d9bd5216c7038345b5 /example | |
| parent | 3e926068202f9901a85d267eb29306f7881e9fae (diff) | |
| download | cmd2-hg-03ff164921c7da1b52cfc9129b393502d7567f27.tar.gz | |
run() folded into app.cmdloop()
Diffstat (limited to 'example')
| -rwxr-xr-x | example/example.py | 4 | ||||
| -rw-r--r-- | example/exampleSession.txt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/example/example.py b/example/example.py index f9c89b6..662b6ec 100755 --- a/example/example.py +++ b/example/example.py @@ -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 @@ class CmdLineApp(Cmd): do_orate = do_speak # another synonym, but this one takes multi-line input c = CmdLineApp() -run(c) +c.cmdloop() diff --git a/example/exampleSession.txt b/example/exampleSession.txt index 61b4230..c751fd3 100644 --- a/example/exampleSession.txt +++ b/example/exampleSession.txt @@ -88,4 +88,4 @@ put this in a file prompt - was: (Cmd) now: ---> ---> say goodbye -goodbye
\ No newline at end of file +goodbye |
