use clap::{CommandFactory, Parser};
use kea_lifecycle::{ExecutableType, args::LifecycleArgs, cmd, error};
fn main() -> error::Result<()> {
let executable_type = ExecutableType::from_executing_path()?;
match executable_type {
ExecutableType::Detector => cmd::detector::exec()?,
_ => {
let _args = LifecycleArgs::parse();
LifecycleArgs::command().print_help().ok();
}
}
Ok(())
}