From 17086e7da6410802a9b058b526a6483772931ae6 Mon Sep 17 00:00:00 2001 From: Moridius Date: Thu, 10 Sep 2020 07:51:01 +0200 Subject: [PATCH] Fixed a problem with argument recognition. --- Cargo.lock | 2 +- Cargo.toml | 8 +++----- src/main.rs | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4c5ba1e..da9febd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,7 +14,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "blinddate" -version = "0.2.0" +version = "0.2.1" dependencies = [ "chrono", "enigo", diff --git a/Cargo.toml b/Cargo.toml index afd078d..9be887e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,9 @@ [package] name = "blinddate" -version = "0.2.0" +version = "0.2.1" authors = ["Moridius "] 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" diff --git a/src/main.rs b/src/main.rs index 0eee234..378ec6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {