parser=argparse.ArgumentParser(description="The ctdo configurable mail reminder script. " \
"Works on the last given day in month. Sends a mail with given " \
"'msg_template' if today is a day in the list of 'reminder_days'")
parser.add_argument('-d',"--day",type=int,choices=range(7),required=True,help="which last day in month? monday=0, tuesday=1, ...")
parser.add_argument('-r',"--reminder_days",type=int,action="append",choices=range(0,31),required=True,help="on which day to remind the crowd? 1 will be one day before, 7 a week before. May be specified multiple times.")
parser.add_argument('-m',"--msg_template",required=True,help="The path to a a file with predefined email text to send. You can use %%(date)s and %%(diff) variables in the text.")
parser.add_argument('-s',"--subject",default="Das bissken Haushalt aka Aufräumtag im CTDO",help="mail subject")