//! CLI argument parsing.
use clap::{Parser, Subcommand};
use std::path::PathBuf;

#[derive(Subcommand, Debug, Clone)]
pub enum Commands {
    /// Generate `.byedroid.toml` from detected Gradle project settings
    Init,
    /// Check external tools and project setup
    Doctor,
}

#[derive(Parser, Debug)]
#[command(name = "bd")]
#[command(author, version, about = "ByeDroid TUI — Android dev cockpit", long_about = None)]
pub struct Cli {
    /// Project directory (defaults to current directory)
    #[arg(short, long, global = true)]
    pub project: Option<PathBuf>,
    #[command(subcommand)]
    pub command: Option<Commands>,
}
