use crate::DispatchConfig;
use clap::Args;
#[derive(Args, Debug, Clone)]
pub struct DispatchConf {
#[arg(short = 'r', long)]
pub reverse: bool,
#[arg(short = 'o', long, default_value = "1", value_parser = clap::value_parser!(u8).range(1..)
)]
pub offset: u8,
}
impl From<DispatchConf> for DispatchConfig {
fn from(opts: DispatchConf) -> Self {
Self {
reverse: opts.reverse,
offset: opts.offset,
}
}
}