use clap::Parser;
use frame_host::Cli;
fn main() -> std::process::ExitCode {
eprintln!(
"frame-host: DEPRECATED — this standalone binary is retiring; use `frame host --config \
<frame.toml>` (same stack, same config, one CLI)."
);
tracing_subscriber::fmt()
.with_env_filter(
tracing_subscriber::EnvFilter::try_from_default_env()
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")),
)
.init();
match frame_host::run(&Cli::parse()) {
Ok(()) => std::process::ExitCode::SUCCESS,
Err(error) => {
eprintln!("frame-host: {error}");
let mut source = std::error::Error::source(&error);
while let Some(cause) = source {
eprintln!(" caused by: {cause}");
source = cause.source();
}
std::process::ExitCode::FAILURE
}
}
}