def add_options(self): ApiCommand.add_options(self) XmlRpcCommand.add_options(self) self.parser.add_option( "-d", "--days", dest="days", help= "Days to fetch data (e.g. 7) (period is up to today, unless start-date or end-date specified)" ) self.parser.add_option( "-s", "--start-date", dest="start_date", help="Date of start of period to fetch data (e.g. 2008-6-25)") self.parser.add_option( "-e", "--end-date", dest="end_date", help="Date of end of period to fetch data (e.g. 2008-6-25)") self.parser.add_option("-a", "--all-time", dest="all_time", action="store_true", default=False, help="Request all ONS updates ever") self.parser.add_option("-c", "--cache-dir", dest="ons_cache_dir", help="Path to store downloads from ONS Pub Hub")
def add_options(self): ApiCommand.add_options(self) XmlRpcCommand.add_options(self) self.parser.add_option("-d", "--days", dest="days", help="Days to fetch data (e.g. 7) (period is up to today, unless start-date or end-date specified)") self.parser.add_option("-s", "--start-date", dest="start_date", help="Date of start of period to fetch data (e.g. 2008-6-25)") self.parser.add_option("-e", "--end-date", dest="end_date", help="Date of end of period to fetch data (e.g. 2008-6-25)") self.parser.add_option("-a", "--all-time", dest="all_time", action="store_true", default=False, help="Request all ONS updates ever") self.parser.add_option("-c", "--cache-dir", dest="ons_cache_dir", help="Path to store downloads from ONS Pub Hub")