change flags display version
This commit is contained in:
parent
20038880f3
commit
2e05fd3ed3
@ -233,7 +233,7 @@ fn display_grid(
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// We handle CLI flags here.
|
||||
let matches = App::new("DancingDroids")
|
||||
.version("0.1.0")
|
||||
.version("0.3.0")
|
||||
.about("When droids dance togethers")
|
||||
.arg(
|
||||
Arg::with_name("file")
|
||||
@ -244,6 +244,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("random-world")
|
||||
.short("w")
|
||||
.long("random-world")
|
||||
.takes_value(false)
|
||||
.help("Generate random world"),
|
||||
|
Loading…
Reference in New Issue
Block a user