summaryrefslogtreecommitdiff
path: root/examples/hooks.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-15 10:53:06 -0400
committerGitHub <noreply@github.com>2019-06-15 10:53:06 -0400
commitc12ba0ff11b3a8fd083c641cb9149aff6494bbf9 (patch)
treea858864c091088e633de6ba6c8db55fd618a71e7 /examples/hooks.py
parentb3759991adca62779ef7aefbff9dc7004463e129 (diff)
parent6a122ae91b6a3fabc3709b1d488843715258e58c (diff)
downloadcmd2-git-c12ba0ff11b3a8fd083c641cb9149aff6494bbf9.tar.gz
Merge pull request #701 from python-cmd2/rename
Rename load, _relative_load, and pyscript
Diffstat (limited to 'examples/hooks.py')
-rwxr-xr-xexamples/hooks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hooks.py b/examples/hooks.py
index c533c696..42224403 100755
--- a/examples/hooks.py
+++ b/examples/hooks.py
@@ -38,10 +38,10 @@ 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 load
+ # 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_load")
+ delattr(cmd2.Cmd, "do_run_script")
super().__init__(*args, **kwargs)