Add command line argument to increase log verbosity
This commit is contained in:
@ -298,9 +298,16 @@ if __name__ == '__main__':
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help='Search movies for current day only instead of a full week'
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
print("Working the magic, please wait…")
|
print("Working the magic, please wait…")
|
||||||
|
if args.log:
|
||||||
|
logging.getLogger().setLevel(logging.DEBUG)
|
||||||
if args.day:
|
if args.day:
|
||||||
movies = TVGuideScraper._getMovies()
|
movies = TVGuideScraper._getMovies()
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user