def start():
    try:
        data = getopt.getopt(sys.argv[1:], "hms:e:", ["help", "hide", "more", "start=", "end="])
    except getopt.GetoptError:
        usage()
        sys.exit(2)
    hide = False
    more = False
    start = "01-01-2012"
    today = date.today()
    end = "%i-%i-%i" % (today.month, today.day, today.year)
    # parse arguments
    for x in data[0]:
        if x[0] == "-h" or x[0] == "--help":
            usage()
            sys.exit()
        elif x[0] == "--hide":
            hide = True
        elif x[0] == "-m" or x[0] == "--more":
            more = True
        elif x[0] == "-s" or x[0] == "--start":
            start = x[1]
        elif x[0] == "-e" or x[0] == "--end":
            end = x[1]
    # verify that dates are acceptable
    try:
        # split argument
        split = start.split("-")
        split2 = end.split("-")
        # create example dates
        date1 = date(int(split[2]), int(split[0]), int(split[1]))
        date2 = date(int(split2[2]), int(split2[0]), int(split2[1]))
        # verify dates
        if date1 > date2 or date1 >= today or date2 > today:
            date_usage()
            sys.exit(2)
    except:
        date_usage()
        sys.exit(2)
    run(hide, more, start, end)
    
# start program when run from command line
undelivered mails are sent to the postmaster
dataset/ETHPy150Open zachpanz88/mlbgame/mlbgame/update.py/start--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/mail/tap.py/Options.opt_bounce_to_postmaster