ferrishot/config.rs
1//! Command line arguments to configure the program
2use std::sync::LazyLock;
3
4use clap::Parser;
5
6/// Configuration of the app
7pub static CONFIG: LazyLock<Config> = LazyLock::new(Config::parse);
8
9/// Configuration for the program
10#[derive(Parser, Debug)]
11#[command(version, about, author = "Nik Revenco")]
12pub struct Config {
13 /// The first selection will be copied to the clipboard as soon as the left mouse button is released
14 #[arg(long)]
15 pub instant: bool,
16}