use std::path::PathBuf;
use clap::{ArgGroup, Parser};
#[derive(Parser, Debug)]
#[command(name = "sub-solver")]
pub struct Args {
#[clap(flatten)]
pub ciphertext: Ciphertext,
#[arg(short, long)]
pub wordlist: Option<String>,
#[arg(short, long)]
pub key: Option<String>,
#[arg(short = 'F', long)]
pub fill_key: bool,
#[arg(short, long)]
pub no_cache: bool,
}
#[derive(Parser, Debug)]
#[clap(group = ArgGroup::new("ciphertext").required(true).multiple(false))]
pub struct Ciphertext {
#[clap(group = "ciphertext", short, long)]
pub string: Option<String>,
#[clap(group = "ciphertext", short, long)]
pub file: Option<PathBuf>,
}