subtitle_translator_cli/
args.rs

1use clap::Parser;
2
3/// A Simple CLI tool to translate subtitle files
4#[derive(Parser, Debug)]
5#[command(version, about, long_about = None)]
6pub struct Args {
7    /// Path to the subtitle file
8    #[arg(short, long)]
9    pub path: String,
10
11    /// The language of the subtitle file
12    #[arg(short, long)]
13    #[clap(visible_alias=&"sl")]
14    pub source_language: String,
15
16    /// The language to translate the subtitle file to
17    #[arg(short, long)]
18    #[clap(visible_alias=&"tl")]
19    pub target_language: String,
20}