Add flag in order to generate a random world
This commit is contained in:
parent
dc98eddcf6
commit
de62d560ce
@ -239,6 +239,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("Configuration file"),
|
.help("Configuration file"),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::with_name("random-world")
|
||||||
|
.long("random-world")
|
||||||
|
.takes_value(false)
|
||||||
|
.help("Generate random world"),
|
||||||
|
)
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
let raw_conf = open_file(matches.value_of("file").unwrap_or("two_robots.txt"))?;
|
let raw_conf = open_file(matches.value_of("file").unwrap_or("two_robots.txt"))?;
|
||||||
|
Loading…
Reference in New Issue
Block a user