summaryrefslogtreecommitdiff
path: root/examples/hooks.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-04 16:03:58 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-04 16:03:58 -0400
commitdae4f2f5ccae0768d2fb38a4b9524fa467857353 (patch)
tree661cd878593d87081657ca76073c1767d150535f /examples/hooks.py
parentd9a71279762b19157841fa09a238a39c2b97b66f (diff)
downloadcmd2-git-dae4f2f5ccae0768d2fb38a4b9524fa467857353.tar.gz
Fixing some examples
Diffstat (limited to 'examples/hooks.py')
-rwxr-xr-xexamples/hooks.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/hooks.py b/examples/hooks.py
index 39a7a0d5..acd427cd 100755
--- a/examples/hooks.py
+++ b/examples/hooks.py
@@ -38,11 +38,6 @@ class CmdLineApp(cmd2.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, *args, **kwargs):
- # sneakily remove the cmd2.Cmd command called run_script
- # this lets a user enter a command like "l5" and allows it to
- # be unambiguous
- delattr(cmd2.Cmd, "do_run_script")
-
super().__init__(*args, **kwargs)
# register three hooks