diff options
author | kotfu <kotfu@kotfu.net> | 2019-08-23 19:09:02 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2019-08-23 19:09:02 -0600 |
commit | 9fd5f6274da443db4f37273d1284e6d09f94aab5 (patch) | |
tree | fa28b7229004097c7df16442cb4551c1bbaff7ab /examples | |
parent | 65cf54ae758bc1e036710c571f6c785820c7e10d (diff) | |
download | cmd2-git-9fd5f6274da443db4f37273d1284e6d09f94aab5.tar.gz |
Add documentation and example for removing built-in commands
For #765
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/remove_builtin_commands.py (renamed from examples/remove_unused.py) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/remove_unused.py b/examples/remove_builtin_commands.py index 62103022..4c1794d6 100755 --- a/examples/remove_unused.py +++ b/examples/remove_builtin_commands.py @@ -12,7 +12,7 @@ Commands can also be removed entirely by using Python's "del". import cmd2 -class RemoveUnusedBuiltinCommands(cmd2.Cmd): +class RemoveBuiltinCommands(cmd2.Cmd): """ Example cmd2 application where we remove some unused built-in commands.""" def __init__(self): @@ -27,5 +27,5 @@ class RemoveUnusedBuiltinCommands(cmd2.Cmd): if __name__ == '__main__': import sys - app = RemoveUnusedBuiltinCommands() + app = RemoveBuiltinCommands() sys.exit(app.cmdloop()) |