From b9a98aa3412b4c0882b2e3bb89c8a10463e93c97 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sat, 24 Feb 2018 00:35:44 -0500 Subject: Fixed removed_unused.py example and help for edit command The remove_unused.py example had become outdated since the cmdenvironment command no longer exists. The help text for the edit command was outdated since the functionality for editing previous commands got moved from the edit command to the history command. This closes #276. This closes #282. --- examples/remove_unused.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/remove_unused.py') diff --git a/examples/remove_unused.py b/examples/remove_unused.py index c8c9e15e..2de0e9b6 100755 --- a/examples/remove_unused.py +++ b/examples/remove_unused.py @@ -19,10 +19,10 @@ class RemoveUnusedBuiltinCommands(cmd2.Cmd): cmd2.Cmd.__init__(self) # To hide commands from displaying in the help menu, add their function name to the exclude_from_help list - self.exclude_from_help.append('do__relative_load') + self.exclude_from_help.append('do_py') # To remove built-in commands entirely, delete their "do_*" function from the cmd2.Cmd class - del cmd2.Cmd.do_cmdenvironment + del cmd2.Cmd.do_edit if __name__ == '__main__': -- cgit v1.2.1