use clap::Parser;
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[command(
name = "repo-analyzer",
about = "A tool to analyze GitHub repositories",
version,
author
)]
pub struct Cli {
#[arg(short, long, required_unless_present = "remote_url")]
pub repo_path: Option<PathBuf>,
#[arg(short = 'f', long, default_value = "html")]
pub output_format: String,
#[arg(short, long)]
pub output: Option<String>,
#[arg(short, long, default_value = "false")]
pub detailed_history: bool,
#[arg(short, long, default_value = "5")]
pub top_contributors: usize,
#[arg(short = 'u', long)]
pub remote_url: Option<String>,
#[arg(long, default_value = "0")]
pub history_depth: usize,
#[arg(short = 'U', long)]
pub upload: bool,
}