1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use clap::ArgAction;
use pacman_bintrans_common::http::Proxy;
use std::path::PathBuf;
use url::Url;
#[derive(Debug, clap::Parser)]
pub struct Args {
#[arg(short = 'v', global = true, action(ArgAction::Count))]
pub verbose: u8,
#[arg(short = 'O', long)]
pub output: PathBuf,
#[arg(long)]
pub transparency_url: Option<Url>,
#[arg(long)]
pub pubkey: String,
#[arg(long)]
pub proxy: Option<Proxy>,
#[arg(long)]
pub bypass_proxy_for_pkgs: bool,
#[arg(long = "rebuilder")]
pub rebuilders: Vec<Url>,
#[arg(long, default_value = "0")]
pub required_rebuild_confirms: usize,
pub url: Url,
}