From 398cdc2202c98fe1491cbb74930a985ecff582aa Mon Sep 17 00:00:00 2001 From: ebcrowder Date: Thu, 27 Aug 2020 16:16:39 -0700 Subject: [PATCH] Update Pargs version and bump version for release --- Cargo.lock | 8 ++++---- Cargo.toml | 4 ++-- src/cli.rs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cb8c5af..b358a57 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,7 +137,7 @@ dependencies = [ [[package]] name = "pargs" -version = "0.1.4" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -166,13 +166,13 @@ dependencies = [ [[package]] name = "rust_ledger" -version = "0.3.1" +version = "0.4.0" dependencies = [ "chrono 0.4.15 (registry+https://github.com/rust-lang/crates.io-index)", "colored 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "csv 1.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "monee 0.0.5 (registry+https://github.com/rust-lang/crates.io-index)", - "pargs 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "pargs 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.115 (registry+https://github.com/rust-lang/crates.io-index)", "serde_yaml 0.8.13 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -281,7 +281,7 @@ dependencies = [ "checksum monee 0.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "10185d7e26610b2ca56d56254e26b1654bbe964e7bd94be07d726f964d19d2db" "checksum num-integer 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)" = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b" "checksum num-traits 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611" -"checksum pargs 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "9af613895e670c4fe40d887de135a1becff72a2fc67352669bfe80ee4d650520" +"checksum pargs 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ab9021fd518ce95acf9c8f7c325187d456268464b07965d7ee3e96adf30609e3" "checksum proc-macro2 1.0.19 (registry+https://github.com/rust-lang/crates.io-index)" = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12" "checksum quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" "checksum regex-automata 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4" diff --git a/Cargo.toml b/Cargo.toml index a2bfdd1..461df9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_ledger" -version = "0.3.1" +version = "0.4.0" authors = ["ebcrowder "] edition = "2018" license = "GPL-3.0" @@ -14,7 +14,7 @@ readme = "README.md" serde_yaml = "0.8.13" serde = { version = "1.0.114", features = ["derive"] } csv = "1.1.3" -pargs = "0.1.4" +pargs = "0.2.1" colored = "2.0.0" monee = "0.0.5" chrono = { version = "0.4", features = ["serde"] } diff --git a/src/cli.rs b/src/cli.rs index 976006b..33885ff 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -6,7 +6,7 @@ mod version; use crate::error::{Error, Result}; use crate::model::ledger::Group; -use pargs::*; +use pargs::Pargs; use std::env; pub fn run() -> Result<()> { @@ -28,11 +28,11 @@ pub fn run() -> Result<()> { String::from("-s"), ]; - let Matches { + let Pargs { command_args, option_args, .. - } = pargs::parse( + } = Pargs::parse( args, expected_command_args, expected_flag_args,