lib_traxex/opt.rs
1use clap::Parser;
2
3#[derive(Parser, Debug, Clone)]
4#[clap(author, version, about, long_about = None)]
5#[command(about = "traxex, a simple and fast download library similar to wget, written in Rust.")]
6pub struct Args {
7 #[clap(short, long)]
8 pub debug: bool,
9 #[clap(short, long)]
10 pub output: Option<String>,
11 #[clap(index = 1, required = true)]
12 pub url: String,
13}