use clap::Parser;
#[derive(Debug, Parser)]
pub struct Args {
#[arg(long)]
pub json: bool,
}
pub fn run(args: Args) -> Result<(), Box<dyn std::error::Error>> {
if !args.json {
return Err("Fix: use --json to emit the coverage matrix.".into());
}
let matrix = crate::proof::algebra::coverage::compute_coverage_matrix();
let json = serde_json::to_string_pretty(&matrix)
.map_err(|err| format!("Fix: failed to serialize coverage matrix: {err}"))?;
println!("{json}");
Ok(())
}