Improve CLI a little
This commit is contained in:
+6
-1
@@ -17,7 +17,7 @@ use crate::system::spaces::square_grid::{Grid2D, Grid3D};
|
||||
use crate::system::spaces::VectorStorage;
|
||||
use crate::system::spawner::UniformSpawner;
|
||||
use crate::system::sticker::{ProbabilisticSticking, SimpleSticking};
|
||||
use crate::system::walker::{DiagonalRandomWalker, LocalRandomWalker};
|
||||
use crate::system::walker::{DiagonalRandomWalker, LocalRandomWalker, Walker};
|
||||
|
||||
mod system;
|
||||
mod surface_probability_measure;
|
||||
@@ -26,6 +26,11 @@ mod cli;
|
||||
fn main() {
|
||||
let cli = ModelCli::parse();
|
||||
|
||||
if cli.preserve_existing && cli.output.exists() {
|
||||
println!("Skipping model execution as output file '{}' already exists", cli.output.to_str().unwrap());
|
||||
return;
|
||||
}
|
||||
|
||||
println!("Running: {:?}", cli);
|
||||
|
||||
match cli.preconfigured_model {
|
||||
|
||||
Reference in New Issue
Block a user