From 096fbabd1a2aae216cca5cd152f743407d0d7686 Mon Sep 17 00:00:00 2001 From: KmolYuan Date: Sat, 7 Oct 2023 20:57:50 +0800 Subject: [PATCH] CLI improvement. --- four-bar-ui/src/cli/syn.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/four-bar-ui/src/cli/syn.rs b/four-bar-ui/src/cli/syn.rs index e0eabf91..46b0ee8b 100644 --- a/four-bar-ui/src/cli/syn.rs +++ b/four-bar-ui/src/cli/syn.rs @@ -170,12 +170,14 @@ pub(super) fn syn(syn: Syn) { rerun, clean, } = syn; - println!( - "seed={:?} gen={} pop={} res={}\n-----", - cfg.seed, cfg.gen, cfg.pop, cfg.res - ); + if let Some(seed) = cfg.seed { + println!("seed={seed}"); + } + println!("gen={} pop={} res={}", cfg.gen, cfg.pop, cfg.res); // If codebook is provided, rerun is always enabled let rerun = rerun || cb.is_some(); + println!("rerun={rerun} clean={clean}"); + println!("-----"); // Load target files & create project folders let tasks = files .into_iter()