diff options
Diffstat (limited to 'example/example.py')
-rwxr-xr-x | example/example.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/example.py b/example/example.py index 782c5e23..f39be5de 100755 --- a/example/example.py +++ b/example/example.py @@ -22,6 +22,10 @@ class CmdLineApp(Cmd): # Setting this true makes it run a shell command if a cmd2/cmd command doesn't exist # default_to_shell = True + def __init__(self): + # Set use_ipython to True to enable the "ipy" command which embeds and interactive IPython shell + Cmd.__init__(self, use_ipython=False) + @options([make_option('-p', '--piglatin', action="store_true", help="atinLay"), make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"), make_option('-r', '--repeat', type="int", help="output [n] times") |