use std::path::PathBuf;
use anyhow::Result;
use clap::Parser;
#[derive(Debug, Parser)]
struct Args {
#[arg(long, env = "CODEX_HOME")]
codex_home: Option<PathBuf>,
#[arg(long, default_value = "127.0.0.1:4317")]
listen: String,
}
#[tokio::main]
async fn main() -> Result<()> {
let args = Args::parse();
codex_cost::server::serve(args.codex_home, args.listen).await
}