Merge "Alias exit to cmd2's quit command to exit interactive shell"

This commit is contained in:
Jenkins 2017-10-10 23:20:07 +00:00 committed by Gerrit Code Review
commit e1c0659a02
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ class InteractiveApp(cmd2.Cmd):
self.print_topics(self.app_cmd_header, cmd_names, 15, 80)
return
# Create exit alias to quit the interactive shell.
do_exit = cmd2.Cmd.do_quit
def get_names(self):
# Override the base class version to filter out
# things that look like they should be hidden