use camino::Utf8PathBuf;
use clap::{ArgAction, Parser};
#[derive(Clone, Debug, Parser)]
#[command(
name = "vicarian",
about = "A reverse proxy.",
version,
)]
pub struct CliOptions {
#[arg(short = 'v', long, action = ArgAction::Count)]
pub verbose: u8,
#[arg(short = 'c', long)]
pub config: Option<Utf8PathBuf>,
}
impl CliOptions {
pub fn from_args() -> CliOptions {
CliOptions::parse()
}
}