use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[command(name = "aphid", version, about, long_about = None)]
pub struct Cli {
#[arg(short, long, default_value = "aphid.toml", global = true)]
pub config: PathBuf,
#[command(subcommand)]
pub command: Option<Command>,
}
#[derive(Subcommand)]
pub enum Command {
Build {
/// Output directory for the rendered site.
#[arg(short, long, default_value = "dist")]
output: PathBuf,
},
Serve {
#[arg(short, long, default_value_t = 3000)]
port: u16,
},
}