Add flag in order to generate a random world

This commit is contained in:
Martin HART 2020-11-04 18:10:42 +01:00
parent dc98eddcf6
commit de62d560ce

View File

@ -239,6 +239,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.takes_value(true)
.help("Configuration file"),
)
.arg(
Arg::with_name("random-world")
.long("random-world")
.takes_value(false)
.help("Generate random world"),
)
.get_matches();
let raw_conf = open_file(matches.value_of("file").unwrap_or("two_robots.txt"))?;