8000 fix: fix months argument name · azat-io/todoctor@2335d0e · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 2335d0e

committed
fix: fix months argument name
1 parent 3e118ff commit 2335d0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The list includes the comment text, the file path, and additional metadata, such
128128

129129
Todoctor supports the following command-line options:
130130

131-
### --month
131+
### --months
132132

133133
Specifies the number of months to include when tracking TODOs in the repository. If not provided, defaults to 3 months.
134134

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ in your code, allowing you to observe changes over time."
1717
struct Cli {
1818
/// Number of months to process
1919
#[arg(short, long, default_value_t = 3, value_parser = clap::value_parser!(u32).range(1..))]
20-
month: u32,
20+
months: u32,
2121

2222
/// Paths to ignore (can be used multiple times)
2323
#[arg(short, long, action = ArgAction::Append)]
@@ -62,7 +62,7 @@ async fn main() {
6262
let todos_with_blame = enrich_todo_data_with_blame(todo_data).await;
6363

6464
let todo_history_data = collect_todo_history(
65-
args.month,
65+
args.months,
6666
&args.ignore,
6767
&args.include_keywords,
6868
&args.exclude_keywords,

0 commit comments

Comments
 (0)
0