Skip to content

Commit

Permalink
fix: parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Feb 7, 2024
1 parent 6aa0819 commit 0940607
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions fav_core/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -109,7 +109,7 @@ enum Commands {
#[arg(value_hint = ValueHint::Other)]
id: Vec<String>,
/// Mark saved true or false
#[arg(long, short, value_parser = ["true", "false"])]
#[arg(long, short)]
saved: Option<bool>,
/// modify the clarity
#[arg(long, short, value_enum)]
Expand Down
2 changes: 1 addition & 1 deletion fav_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0940607

Please sign in to comment.