make gui open whenever no args are supplied
This commit is contained in:
parent
e4ff6329ec
commit
12728a4f17
3 changed files with 6 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -346,7 +346,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "qft"
|
name = "qft"
|
||||||
version = "0.5.0"
|
version = "0.5.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iui",
|
"iui",
|
||||||
"rand",
|
"rand",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "qft"
|
name = "qft"
|
||||||
version = "0.5.0"
|
version = "0.5.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -271,7 +271,10 @@ fn main() {
|
||||||
"receiver" => receiver(&args, |_| {}),
|
"receiver" => receiver(&args, |_| {}),
|
||||||
"gui" => gui::gui().expect("can't use gui"),
|
"gui" => gui::gui().expect("can't use gui"),
|
||||||
"version" => println!("QFT version: {}", env!("CARGO_PKG_VERSION")),
|
"version" => println!("QFT version: {}", env!("CARGO_PKG_VERSION")),
|
||||||
_ => print_args(&args),
|
_ => match gui::gui() {
|
||||||
|
Ok(_) => {},
|
||||||
|
Err(_) => print_args(&args),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue