@@ -35,76 +35,79 @@ def main() -> None:
3535 description = "ICE Detention Facilities Data Scraper and Enricher" ,
3636 formatter_class = ArgumentDefaultsHelpFormatter ,
3737 )
38- parser .add_argument (
38+ _ = parser .add_argument (
3939 "--scrape" ,
4040 action = "store_true" ,
4141 default = False ,
4242 help = "Scrape initial facility data from ICE.gov" ,
4343 )
44- parser .add_argument (
44+ _ = parser .add_argument (
4545 "--enrich" ,
4646 action = "store_true" ,
4747 default = False ,
4848 help = "enrich collected data" ,
4949 )
50- parser .add_argument (
50+ _ = parser .add_argument (
5151 "--load-existing" ,
5252 action = "store_true" ,
5353 default = False ,
5454 help = "load data from local files" ,
5555 )
56- parser .add_argument (
56+ _ = parser .add_argument (
5757 "--file-type" ,
5858 choices = supported_output_types ,
59+ type = str ,
5960 help = "type of file to export" ,
6061 )
61- parser .add_argument (
62+ _ = parser .add_argument (
6263 "--output-file-name" ,
6364 "-o" ,
6465 default = "ice_detention_facilities" ,
66+ type = str ,
6567 help = "The file we'll write data out to (excluding the suffix)" ,
6668 )
67- parser .add_argument (
69+ _ = parser .add_argument (
6870 "--debug" ,
6971 action = "store_true" ,
7072 help = "Full debug information and logging" ,
7173 )
72- parser .add_argument (
74+ _ = parser .add_argument (
7375 "--enrich-workers" ,
7476 type = int ,
7577 default = 3 ,
7678 help = "Number of concurrent processes to allow while enriching data" ,
7779 )
7880 # todo these need more attention, but should now be accepted as command line options now.
79- parser .add_argument (
81+ _ = parser .add_argument (
8082 "--debug-wikipedia" ,
8183 action = "store_true" ,
8284 help = "Add another column on export for Wikipedia debugging details and redirects" ,
8385 )
84- parser .add_argument (
86+ _ = parser .add_argument (
8587 "--debug-wikidata" ,
8688 action = "store_true" ,
8789 help = "Add another column on export for Wikidata debugging details and redirects" ,
8890 )
89- parser .add_argument (
91+ _ = parser .add_argument (
9092 "--debug-osm" ,
9193 action = "store_true" ,
9294 help = "Add another column on export for OpenStreetMap debugging details and redirects" ,
9395 )
94- parser .add_argument (
96+ _ = parser .add_argument (
9597 "--skip-downloads" ,
9698 action = "store_true" ,
9799 help = "Skip downloading sheet data" ,
98100 )
99- parser .add_argument (
101+ _ = parser .add_argument (
100102 "--delete-sheets" ,
101103 action = "store_true" ,
102104 help = "Remove any sheets we downloaded" ,
103105 )
104- parser .add_argument (
105- "--skip -vera" ,
106+ _ = parser .add_argument (
107+ "--use -vera" ,
106108 action = "store_true" ,
107- help = "Don't collect vera.org data" ,
109+ default = False ,
110+ help = "Collect vera.org data" ,
108111 )
109112
110113 args = parser .parse_args ()
@@ -131,7 +134,7 @@ def main() -> None:
131134 facilities_data = facilities_scrape_wrapper (
132135 keep_sheet = not args .delete_sheets ,
133136 force_download = not args .skip_downloads ,
134- skip_vera = args .skip_vera ,
137+ skip_vera = not args .use_vera ,
135138 )
136139 elif args .load_existing :
137140 facilities_data = copy .deepcopy (default_data .facilities_data )
0 commit comments