This commit is contained in:
2026-06-03 14:16:45 +02:00
parent fe9c7e9682
commit f9bebfc938
12 changed files with 1493 additions and 195 deletions
+26
View File
@@ -0,0 +1,26 @@
use crate::logs::init_logger;
use clap::Parser;
#[derive(Parser, Debug, Clone)]
#[command(version, about = "Veil.rs", long_about = "Veil.rs")]
pub struct Cli {
#[arg(
long,
short = 'l',
help = "Enable logging to file (default: disabled)",
default_value_t = false
)]
pub log: bool,
}
impl Cli {
pub fn get_args() -> Self {
let args: Cli = Cli::parse();
if args.log {
init_logger();
}
args
}
}