summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-07-06 14:12:13 -0600
committerkotfu <kotfu@kotfu.net>2019-07-06 14:12:13 -0600
commit5dea50a8a376532da05a25eb0f9721f18490e346 (patch)
tree543155451cce0c9cda33b55d3ad3cd2adb1d81a8 /examples
parent9523c0dc56b4b7c208ea69adeb05c802d9aa10b2 (diff)
parent42bf56f8334cddc0fe3423e98eba5dbc537a4dd8 (diff)
downloadcmd2-git-5dea50a8a376532da05a25eb0f9721f18490e346.tar.gz
Merge branch 'master' into docstructure
Diffstat (limited to 'examples')
-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