Skip to content

Commit 36c6987

Browse files
authored
Merge pull request #286 from python-cmd2/unused_and_edit_fixes
Fixed removed_unused.py example and help for edit command
2 parents 0ee3d6b + 5c23a4b commit 36c6987

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ def do_history(self, args):
21842184

21852185
@with_argument_list
21862186
def do_edit(self, arglist):
2187-
"""Edit a file or command in a text editor.
2187+
"""Edit a file in a text editor.
21882188
21892189
Usage: edit [file_path]
21902190
Where:

examples/remove_unused.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def __init__(self):
1919
cmd2.Cmd.__init__(self)
2020

2121
# To hide commands from displaying in the help menu, add their function name to the exclude_from_help list
22-
self.exclude_from_help.append('do__relative_load')
22+
self.exclude_from_help.append('do_py')
2323

2424
# To remove built-in commands entirely, delete their "do_*" function from the cmd2.Cmd class
25-
del cmd2.Cmd.do_cmdenvironment
25+
del cmd2.Cmd.do_edit
2626

2727

2828
if __name__ == '__main__':

0 commit comments

Comments
 (0)