use anyhow::Result;
use clap::Args;
use std::path::PathBuf;
#[derive(Debug, Args)]
pub struct ServeTilesArgs {
pub input: PathBuf,
#[arg(long, default_value = "8080")]
pub port: u16,
#[arg(long, default_value = "127.0.0.1")]
pub addr: String,
}
pub fn run(args: &ServeTilesArgs) -> Result<()> {
anyhow::bail!(
"serve-tiles requires axum, pmtiles, and tower-http crates. \
Vendor them and enable the 'serve' feature to use this command.\n\
Input: {}, Address: {}:{}",
args.input.display(),
args.addr,
args.port
)
}