예제 #1
0
 def add_options(self):
     ApiCommand.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("-m", "--month",
                            dest="month",
                            help="Year and month to fetch data from (e.g. 2008-6)")
     self.parser.add_option("", "--months-since",
                            dest="months_since",
                            help="Year and month to fetch data since, in monthly chunks (e.g. 2008-6)")
     self.parser.add_option("-a", "--all-time",
                            dest="all_time",
                            action="store_true",
                            default=False,
                            help="Request all ONS updates ever, in monthly chunks")
     self.parser.add_option("-f", "--force-download",
                            dest="force_download",
                            action="store_true",
                            default=False,
                            help="Force download from ONS, even if it is cached")
     self.parser.add_option("-c", "--cache-dir",
                            dest="ons_cache_dir",
                            help="Path to store downloads from ONS Pub Hub")
     self.parser.add_option("--publisher",
                            dest="publisher",
                            help="Filter by this publisher")
예제 #2
0
 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")
예제 #3
0
 def add_options(self):
     ApiCommand.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("-m", "--month",
                            dest="month",
                            help="Year and month to fetch data from (e.g. 2008-6)")
     self.parser.add_option("", "--months-since",
                            dest="months_since",
                            help="Year and month to fetch data since, in monthly chunks (e.g. 2008-6)")
     self.parser.add_option("-a", "--all-time",
                            dest="all_time",
                            action="store_true",
                            default=False,
                            help="Request all ONS updates ever, in monthly chunks")
     self.parser.add_option("-f", "--force-download",
                            dest="force_download",
                            action="store_true",
                            default=False,
                            help="Force download from ONS, even if it is cached")
     self.parser.add_option("-c", "--cache-dir",
                            dest="ons_cache_dir",
                            help="Path to store downloads from ONS Pub Hub")
예제 #4
0
 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")
예제 #5
0
 def add_options(self):
     ApiCommand.add_options(self)