From 0940607ead691d1ddcb9ec7fe2cf9aab33e517f6 Mon Sep 17 00:00:00 2001 From: Louis <836250617@qq.com> Date: Wed, 7 Feb 2024 18:58:06 +0800 Subject: [PATCH] fix: parse error --- CHANGELOG.md | 3 +++ fav_core/src/cli/mod.rs | 4 ++-- fav_utils/Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f48b25d..445c158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +## [0.1.12] - 2024-02-07 +- Fix: args parsing error when using `fav modify` `fav init` command. + ## [0.1.11] - 2024-02-07 - Fix: `Ctrl-C` only cancels current batch(10) of jobs, instead of exiting the whole program. - See discussions in #5 for more information about the next developping trends. diff --git a/fav_core/src/cli/mod.rs b/fav_core/src/cli/mod.rs index 34ef0e5..9401253 100644 --- a/fav_core/src/cli/mod.rs +++ b/fav_core/src/cli/mod.rs @@ -29,7 +29,7 @@ pub struct Cli { enum Commands { /// Initialize the folder for fav Init { - #[arg(value_enum, value_parser = ["bili"])] + #[arg(value_enum)] kind: Kind, /// The path to store the fav #[arg(value_hint = ValueHint::DirPath)] @@ -109,7 +109,7 @@ enum Commands { #[arg(value_hint = ValueHint::Other)] id: Vec, /// Mark saved true or false - #[arg(long, short, value_parser = ["true", "false"])] + #[arg(long, short)] saved: Option, /// modify the clarity #[arg(long, short, value_enum)] diff --git a/fav_utils/Cargo.toml b/fav_utils/Cargo.toml index f82824c..f7a71d4 100644 --- a/fav_utils/Cargo.toml +++ b/fav_utils/Cargo.toml @@ -2,7 +2,7 @@ name = "fav_utils" version.workspace = true authors.workspace = true -description.workspace = "Fav utils crate; A collection of utilities and data structures for the fav project" +description = "Fav utils crate; A collection of utilities and data structures for the fav project" license.workspace = true edition.workspace = true repository.workspace = true