diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-03-06 15:29:03 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-03-06 15:29:03 +0200 |
commit | b46301bfdba68748d536bedcf7faac3f367b230f (patch) | |
tree | 7be61c453705cd90aa66fe88cb8b5230dd2cf899 /src/cmdline.rs | |
download | firefox-dmenu-integration-b46301bfdba68748d536bedcf7faac3f367b230f.tar.gz firefox-dmenu-integration-b46301bfdba68748d536bedcf7faac3f367b230f.tar.bz2 firefox-dmenu-integration-b46301bfdba68748d536bedcf7faac3f367b230f.zip |
feat: initial implementation
Diffstat (limited to 'src/cmdline.rs')
-rw-r--r-- | src/cmdline.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cmdline.rs b/src/cmdline.rs new file mode 100644 index 0000000..43adbec --- /dev/null +++ b/src/cmdline.rs @@ -0,0 +1,18 @@ +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, + #[arg(short = 'm', long)] + pub dmenu: PathBuf, + /// Location history sqlite database + #[arg(short = 'p', long, default_value = PathBuf::from("~/.mozilla/firefox/11ybm96o.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, +} |