diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-03-13 21:59:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-13 21:59:59 -0400 |
| commit | 1416181381a4b5491eac93bd1b07148be28809e9 (patch) | |
| tree | 7fbf04f29ec1ae69cf9b7e480e089aa7864c1a2d /examples/event_loops.py | |
| parent | 8b0505c5ccdc7516572afe1426d82666f97232af (diff) | |
| parent | 70b915f387653c78de1cf978742f21867e13d235 (diff) | |
| download | cmd2-git-1416181381a4b5491eac93bd1b07148be28809e9.tar.gz | |
Merge pull request #77 from python-cmd2/spelling
Spelling Fixes and Disable Mac OS X builds on Travis CI
Diffstat (limited to 'examples/event_loops.py')
| -rwxr-xr-x | examples/event_loops.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/event_loops.py b/examples/event_loops.py index e3e5880c..24efa830 100755 --- a/examples/event_loops.py +++ b/examples/event_loops.py @@ -10,6 +10,7 @@ import cmd2 class Cmd2EventBased(cmd2.Cmd): + """Basic example of how to run cmd2 without it controlling the main loop.""" def __init__(self): cmd2.Cmd.__init__(self) @@ -20,7 +21,8 @@ if __name__ == '__main__': app = Cmd2EventBased() app.preloop() - # Do this within whatever event loop mechanism you wish to run a single command + # Do this within whatever event loop mechanism you wish to run a single command. + # In this case, no prompt is generated, so you need to provide one and read the user's input. app.onecmd_plus_hooks("help history") app.postloop() |
