Add command line argument to increase log verbosity

This commit is contained in:
2019-10-19 09:09:58 +02:00
parent 0564ba6f75
commit 18458d059f

View File

@ -298,9 +298,16 @@ if __name__ == '__main__':
action='store_true',
help='Search movies for current day only instead of a full week'
)
parser.add_argument(
'-l', '--log',
action='store_true',
help='Display move log messages'
)
args = parser.parse_args()
print("Working the magic, please wait…")
if args.log:
logging.getLogger().setLevel(logging.DEBUG)
if args.day:
movies = TVGuideScraper._getMovies()
else: