use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(name = "whis")]
#[command(version)]
#[command(about = "Voice-to-text CLI using OpenAI Whisper API")]
#[command(after_help = "Run 'whis' without arguments to record once (press Enter to stop).")]
pub struct Cli {
#[command(subcommand)]
pub command: Option<Commands>,
}
#[derive(Subcommand)]
pub enum Commands {
Listen {
#[arg(short = 'k', long, default_value = "ctrl+shift+r")]
hotkey: String,
},
Stop,
Status,
Config {
#[arg(long)]
api_key: Option<String>,
#[arg(long)]
show: bool,
},
}