Fixed a problem with argument recognition.
This commit is contained in:
parent
c608fd2668
commit
17086e7da6
|
@ -14,7 +14,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blinddate"
|
name = "blinddate"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"enigo",
|
"enigo",
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
[package]
|
[package]
|
||||||
name = "blinddate"
|
name = "blinddate"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
authors = ["Moridius <moridius-github@posteo.hu>"]
|
authors = ["Moridius <moridius-github@posteo.hu>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4.9"
|
chrono = "0.4"
|
||||||
enigo = "0.0.13"
|
enigo = "0.0"
|
||||||
|
|
|
@ -67,7 +67,7 @@ fn main() {
|
||||||
let mut command = String::new();
|
let mut command = String::new();
|
||||||
let mut alt_tab = false;
|
let mut alt_tab = false;
|
||||||
|
|
||||||
for arg in env::args() {
|
for arg in env::args().skip(1) {
|
||||||
if arg == "--tab" {
|
if arg == "--tab" {
|
||||||
alt_tab = true;
|
alt_tab = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue