use clap::{Args, Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[command(name = "wpepub", version, about, long_about = None)]
pub(crate) struct WPEpubCli {
#[command(subcommand)]
pub(crate) command: Commands,
}
#[derive(Subcommand, Debug)]
pub(crate) enum Commands {
Do(DoArgs),
}
#[derive(Args, Debug)]
pub(crate) struct DoArgs {
#[arg(short = 'd', long)]
pub(crate) id: u64,
#[arg(short = 'e', long = "email")]
pub(crate) email: String,
#[arg(short = 'p', long = "password")]
pub(crate) password: String,
#[arg(short = 'i', long = "img")]
pub(crate) include_images: bool,
#[arg(short = 'o', long, value_name = "DIRECTORY")]
pub(crate) output_path: Option<PathBuf>,
#[arg(short = 's', long, default_value_t = 20)]
pub(crate) semaphore: u32,
}
#[derive(Args, Debug)]
pub(crate) struct LoginArgs {
#[arg(short = 'e', long = "email")]
pub(crate) email: String,
#[arg(short = 'p', long = "password")]
pub(crate) password: String,
}