diff --git a/calendar/teachingdates/config/cli.py b/calendar/teachingdates/config/cli.py index 83e080d..a9467a9 100644 --- a/calendar/teachingdates/config/cli.py +++ b/calendar/teachingdates/config/cli.py @@ -146,7 +146,7 @@ elif args.style == "lecture": # --end-of-week is irrelevant if args.end_of_week is not None: - args.end_of_week = 0 + args.end_of_week = None print("{prog}: warning: --end-of-week/-e is ignored for 'lecture' " "style".format(prog=PROG)) # both --paper and --teaching-period are required @@ -161,7 +161,7 @@ # Can't set default week offset until after error processing above, # otherwise it generates a spurious warning in 'lecture' style. - if args.style != "lecture" and args.end_of_week is None: + if args.end_of_week is None: args.end_of_week = 4 return args