use clap::Parser;
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[command(version, author, about, long_about)]
pub struct Argument {
#[arg(short, long)]
config_path: Option<PathBuf>,
#[arg(short, long)]
port: Option<u16>,
}
impl Argument {
pub fn config_path(&self) -> &Option<PathBuf> {
&self.config_path
}
pub fn port(&self) -> &Option<u16> {
&self.port
}
}