Fixed a problem with argument recognition.

This commit is contained in:
Moridius 2020-09-10 07:51:01 +02:00
parent c608fd2668
commit 17086e7da6
3 changed files with 5 additions and 7 deletions

2
Cargo.lock generated
View File

@ -14,7 +14,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
[[package]]
name = "blinddate"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"chrono",
"enigo",

View File

@ -1,11 +1,9 @@
[package]
name = "blinddate"
version = "0.2.0"
version = "0.2.1"
authors = ["Moridius <moridius-github@posteo.hu>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
chrono = "0.4.9"
enigo = "0.0.13"
chrono = "0.4"
enigo = "0.0"

View File

@ -67,7 +67,7 @@ fn main() {
let mut command = String::new();
let mut alt_tab = false;
for arg in env::args() {
for arg in env::args().skip(1) {
if arg == "--tab" {
alt_tab = true;
} else {