2024-11-17 02:35:24 +08:00
|
|
|
|
use clap::Parser;
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Parser)]
|
|
|
|
|
|
#[command(name = "ncmmiao")]
|
|
|
|
|
|
#[command(author = "lkhsss")]
|
2024-11-24 01:38:56 +08:00
|
|
|
|
#[command(version,about = "一个解密ncm文件的神秘程序 By Lkhsss", long_about = None)]
|
2024-11-17 02:35:24 +08:00
|
|
|
|
pub struct Cli {
|
2024-11-17 10:38:38 +08:00
|
|
|
|
/// 并发的最大线程数,默认为4线程
|
2024-11-17 02:35:24 +08:00
|
|
|
|
#[arg(short, long)]
|
|
|
|
|
|
pub workers: Option<usize>,
|
|
|
|
|
|
/// 需要解密的文件夹或文件
|
|
|
|
|
|
#[arg(short, long, name = "输入文件/文件夹")]
|
|
|
|
|
|
pub input: Vec<String>,
|
|
|
|
|
|
|
|
|
|
|
|
#[arg(short, long, name = "输出文件夹", default_value = "NcmmiaoOutput")]
|
|
|
|
|
|
pub output: Option<String>,
|
|
|
|
|
|
}
|