use clap::Parser;
mod commands;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let command = commands::ValidatorCommand::parse();
let _otel_guard = miden_node_tracing::setup_tracing(command.open_telemetry())?;
miden_node_utils::shutdown::run_with_shutdown("miden-validator", |shutdown| {
command.handle(shutdown)
})
.await
}