From dc78692c72bc704b8d50b6b7f8f614a3cf1a203f Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 7 Aug 2021 23:27:11 +1000 Subject: [PATCH] Use new names for STVOptions::describe --- src/stv/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stv/mod.rs b/src/stv/mod.rs index 53b787a..27a2ef7 100644 --- a/src/stv/mod.rs +++ b/src/stv/mod.rs @@ -165,8 +165,8 @@ impl STVOptions { let mut flags = Vec::new(); let n_str = N::describe_opt(); if !n_str.is_empty() { flags.push(N::describe_opt()) }; if self.surplus != SurplusMethod::Cincinnati && self.surplus != SurplusMethod::Hare { - if let Some(dps) = self.round_surplus_fractions { flags.push(format!("--round-tvs {}", dps)); } - if let Some(dps) = self.round_values { flags.push(format!("--round-weights {}", dps)); } + if let Some(dps) = self.round_surplus_fractions { flags.push(format!("--round-surplus-fractions {}", dps)); } + if let Some(dps) = self.round_values { flags.push(format!("--round-values {}", dps)); } if let Some(dps) = self.round_votes { flags.push(format!("--round-votes {}", dps)); } } if let Some(dps) = self.round_quota { flags.push(format!("--round-quota {}", dps)); }