diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-02-24 00:35:44 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-02-24 00:35:44 -0500 |
commit | b9a98aa3412b4c0882b2e3bb89c8a10463e93c97 (patch) | |
tree | 47f68dd4288012bca1712967cac99925d24261a4 /examples | |
parent | 656a7742f0f15bf64f259e4f32b1d0a082fcfc83 (diff) | |
download | cmd2-git-b9a98aa3412b4c0882b2e3bb89c8a10463e93c97.tar.gz |
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.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/remove_unused.py | 4 |
1 files changed, 2 insertions, 2 deletions
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__': |