Browse Source

Add command line argument to increase log verbosity

master
djib 2 years ago
parent
commit
18458d059f
  1. 7
      FreeboxMoviePlanner.py

7
FreeboxMoviePlanner.py

@ -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:

Loading…
Cancel
Save