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