大更新!

This commit is contained in:
Lkhsss
2024-11-17 02:35:24 +08:00
parent 996e1668c4
commit 412c8306fc
9 changed files with 724 additions and 500 deletions

17
src/clap.rs Normal file
View File

@ -0,0 +1,17 @@
use clap::Parser;
#[derive(Parser)]
#[command(name = "ncmmiao")]
#[command(author = "lkhsss")]
#[command(version,about = "一个解密ncm文件的神秘程序", long_about = None)]
pub struct Cli {
/// 最大线程数 约束逻辑在主函数
#[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>,
}