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