use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[command(name = "terrana", version, about = "Zero-config spatial API server")]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Subcommand, Debug)]
pub enum Commands {
Serve {
file: PathBuf,
#[arg(long)]
lat: Option<String>,
#[arg(long)]
lon: Option<String>,
#[arg(long)]
table: Option<String>,
#[arg(long, default_value = "8080")]
port: u16,
#[arg(long, default_value = "127.0.0.1")]
bind: String,
#[arg(long)]
watch: bool,
#[arg(long)]
disk: bool,
},
}