use clap::{Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(
name = "noctis",
about = "Vulnerability scanner — YAML-driven, Rust-native",
version
)]
pub struct Cli {
#[arg(short, long, action = clap::ArgAction::Count, global = true)]
pub verbose: u8,
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand, Debug)]
pub enum Command {
Serve(ServeArgs),
}
#[derive(Parser, Debug)]
pub struct ServeArgs {
#[arg(long, default_value = "0.0.0.0")]
pub host: String,
#[arg(long, default_value_t = 8080)]
pub port: u16,
#[arg(long)]
pub oob: bool,
#[arg(long, default_value = "127.0.0.1")]
pub oob_host: String,
#[arg(long, default_value_t = 9090)]
pub oob_port: u16,
}