aboutsummaryrefslogtreecommitdiff
path: root/src/cmdline.rs
blob: 9d3bc29f3215fc458524abb691e58df0495eb0bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use std::path::PathBuf;

use clap::Parser;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct Args {
    /// Path to browser executable
    #[arg(short, long)]
    pub browser: PathBuf,
    /// Path to dmenu executable
    #[arg(short = 'm', long)]
    pub dmenu: PathBuf,
    /// Location history sqlite database
    #[arg(short = 'p', long, default_value = PathBuf::from("~/.mozilla/firefox/000000.default").into_os_string())]
    pub profile: PathBuf,
    /// Limit of location history entries to seek
    #[arg(short = 'l', long, default_value_t = 100)]
    pub limit: usize,
}