大更新!
This commit is contained in:
17
src/clap.rs
Normal file
17
src/clap.rs
Normal 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>,
|
||||
}
|
||||
Reference in New Issue
Block a user