Use new names for STVOptions::describe

This commit is contained in:
RunasSudo 2021-08-07 23:27:11 +10:00
parent b58922c57b
commit dc78692c72
No known key found for this signature in database
GPG Key ID: 7234E476BF21C61A

View File

@ -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)); }