From fba87f3cb9961b008a38d38c41ac9e7bdc7a425d Mon Sep 17 00:00:00 2001 From: Sylwester Fraczek Date: Wed, 11 Oct 2023 14:36:36 +0200 Subject: [PATCH] add wild package --- Cargo.lock | 10 ++++++++++ Cargo.toml | 1 + src/main.rs | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 420acb8..8f35958 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -394,6 +394,7 @@ dependencies = [ "reqwest", "serde", "simple_logger", + "wild", ] [[package]] @@ -1653,6 +1654,15 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9193164d4de03a926d909d3bc7c30543cecb35400c02114792c2cae20d5e2dbb" +[[package]] +name = "wild" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10d01931a94d5a115a53f95292f51d316856b68a035618eb831bbba593a30b67" +dependencies = [ + "glob", +] + [[package]] name = "winapi" version = "0.3.9" diff --git a/Cargo.toml b/Cargo.toml index 7bb48f2..cbf5bc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,3 +20,4 @@ log = "0.4.0" clap = "~2.27.0" regex = "1.3.3" calamine = "0.18.0" +wild = "2.2.0" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index b379f70..7c97161 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ fn main() { let myapp = App::new("etradeTaxHelper ".to_string() + VERSION) .setting(AppSettings::ArgRequiredElseHelp); - let matches = create_cmd_line_pattern(myapp).get_matches(); + let matches = create_cmd_line_pattern(myapp).get_matches_from(wild::args()); log::info!("Started etradeTaxHelper");