Allow showing from amounts in overhead allocation
This commit is contained in:
20
src/main.rs
20
src/main.rs
@@ -63,6 +63,12 @@ enum Commands {
|
||||
#[arg(short, long)]
|
||||
exclude_negative_allocation_statistics: bool,
|
||||
|
||||
#[arg(short = 'f', long)]
|
||||
show_from: bool,
|
||||
|
||||
#[arg(short, long, default_value = "0.1")]
|
||||
zero_threshold: f64,
|
||||
|
||||
#[arg(short, long, value_name = "FILE")]
|
||||
output: Option<PathBuf>,
|
||||
},
|
||||
@@ -120,18 +126,22 @@ fn main() -> anyhow::Result<()> {
|
||||
use_numeric_accounts,
|
||||
account_type,
|
||||
exclude_negative_allocation_statistics,
|
||||
show_from,
|
||||
zero_threshold,
|
||||
output,
|
||||
} => coster_rs::reciprocal_allocation(
|
||||
csv::Reader::from_path(lines)?,
|
||||
csv::Reader::from_path(accounts)?,
|
||||
csv::Reader::from_path(allocation_statistics)?,
|
||||
csv::Reader::from_path(areas)?,
|
||||
csv::Reader::from_path(cost_centres)?,
|
||||
&mut csv::Reader::from_path(lines)?,
|
||||
&mut csv::Reader::from_path(accounts)?,
|
||||
&mut csv::Reader::from_path(allocation_statistics)?,
|
||||
&mut csv::Reader::from_path(areas)?,
|
||||
&mut csv::Reader::from_path(cost_centres)?,
|
||||
&mut csv::Writer::from_path(output.unwrap_or(PathBuf::from("alloc_output.csv")))?,
|
||||
use_numeric_accounts,
|
||||
exclude_negative_allocation_statistics,
|
||||
true,
|
||||
account_type,
|
||||
show_from,
|
||||
zero_threshold,
|
||||
),
|
||||
Commands::CreateProducts {
|
||||
definitions,
|
||||
|
||||
Reference in New Issue
Block a user