def handle_noargs(self, **options):
        startdate = options.get('startdate')
        enddate = options.get('enddate')

        try:
            if startdate is not None:
                startdate = parse_date(startdate)
            if enddate is not None:
                enddate = parse_date(enddate)
        except ValueError, err:
            print "Invalid date: %s" % err
            return

        if crawler.offer_resume():
            crawler.resume_main()
        else:
            crawler.crawl_main(startdate, enddate)
dataset/ETHPy150Open sunlightlabs/clearspending/timeliness/management/commands/download_timeliness.py/Command.handle_noargs/original