Skip to main content

background_picker/
cli.rs

1use std::path::PathBuf;
2
3use clap::Parser;
4
5#[derive(Parser, Clone)]
6#[command(name = "background-picker")]
7#[command(about = "A GUI tool for selecting desktop backgrounds")]
8pub struct Args {
9    #[arg(short, long, default_value = ".")]
10    pub directory: PathBuf,
11
12    #[arg(short, long, default_value = "150")]
13    pub thumbnail_size: u32,
14
15    #[arg(short, long, default_value = "feh --bg-max")]
16    pub command: String,
17
18    #[arg(short, long, default_value = "selected-background.txt")]
19    pub selected_image_file: PathBuf,
20
21    #[arg(long, help = "Enable debug output")]
22    pub debug: bool,
23
24    #[arg(long, help = "Pre-generate all thumbnails and exit (don't show GUI)")]
25    pub pregenerate: bool,
26}