diff --git a/src/ingest_gtfs_schedule/main.rs b/src/ingest_gtfs_schedule/main.rs index 378d7617..e1aa515e 100644 --- a/src/ingest_gtfs_schedule/main.rs +++ b/src/ingest_gtfs_schedule/main.rs @@ -238,12 +238,12 @@ async fn main() -> Result<(), Box> { .unwrap() .get::("softinsert"); - let forcewipe = arguments::parse(std::env::args()) + let force_wipe = arguments::parse(std::env::args()) .unwrap() .get::("forcewipe") .unwrap_or_else(|| false); - if (startfresh.unwrap_or(false) && isprod.unwrap_or(false) && forcewipe) { + if (startfresh.unwrap_or(false) && is_prod.unwrap_or(false) && force_wipe) { panic!("Cannot wipe the prod server without --forcewipe true"); }