subx_cli/cli/
match_args.rs

1// src/cli/match_args.rs
2use clap::Args;
3use std::path::PathBuf;
4
5/// AI 匹配重命名字幕檔案參數
6#[derive(Args, Debug)]
7pub struct MatchArgs {
8    /// 目標資料夾路徑
9    pub path: PathBuf,
10
11    /// 預覽模式,不實際執行操作
12    #[arg(long)]
13    pub dry_run: bool,
14
15    /// 最低信心度閾值 (0-100)
16    #[arg(long, default_value = "80")]
17    pub confidence: u8,
18
19    /// 遞歸處理子資料夾
20    #[arg(short, long)]
21    pub recursive: bool,
22
23    /// 重命名前備份原檔案
24    #[arg(long)]
25    pub backup: bool,
26}