Skip to content

Commit

Permalink
handle EOF from CLI calling "quit"
Browse files Browse the repository at this point in the history
  • Loading branch information
ortylp committed Oct 28, 2018
1 parent 1efbdbd commit 53397b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loophole/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def do_exit(self, _):
sys.exit(0)
# end-of-method do_exit

def do_EOF(self, _):
"""Quit. handles EOF"""
self.do_exit(_)
# end-of-method do_EOF

def do_list(self, _):
"""List available Polar devices.
Usage: list
Expand Down

0 comments on commit 53397b3

Please sign in to comment.