Skip to content

Commit c58016d

Browse files
committed
Add verbose output.
1 parent 66b4243 commit c58016d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ts_inspect.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
import argparse
3+
import logging
34
from ts import *
45
import sys
56

@@ -34,8 +35,15 @@ def __contains__(self, x):
3435
parser.add_argument(
3536
"--no-wait", help="Don't want for input after output",
3637
action="store_true", default=False)
38+
parser.add_argument(
39+
"--verbose", "-v", action="store_true", default=False,
40+
help="Enable verbose output.")
3741
args = parser.parse_args()
3842

43+
logging.basicConfig(
44+
format='%(levelname)s: %(message)s',
45+
level=logging.DEBUG if args.verbose else logging.INFO)
46+
3947
def wait():
4048
if args.no_wait:
4149
pass

0 commit comments

Comments
 (0)