Skip to content

Commit 2489683

Browse files
add command line flag for logging
--HG-- branch : scroll-frontend
1 parent 2611440 commit 2489683

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bpython/scroll.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
from bpython.scrollfrontend.repl import Repl
55

6+
import sys
7+
if '-v' in sys.argv:
8+
import logging
9+
logging.basicConfig(filename='scroll.log', level=logging.DEBUG)
10+
611
def main():
712
with TerminalController() as tc:
813
with Terminal(tc, keep_last_line=True, hide_cursor=False) as term:

0 commit comments

Comments
 (0)