Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If2c377d3b866a33a65d85836bc9010756a6a6964
16 lines
391 B
Rust
16 lines
391 B
Rust
use clap::Parser;
|
|
|
|
pub use clap::Parser as Clap;
|
|
|
|
#[derive(Parser, Debug)]
|
|
#[command(name = "lychee")]
|
|
pub struct Args {
|
|
#[arg(help = "Paths to images or directories")]
|
|
pub paths: Vec<String>,
|
|
|
|
#[arg(short, long, help = "Open in fullscreen mode")]
|
|
pub fullscreen: bool,
|
|
|
|
#[arg(long, default_value_t = 5, help = "Slideshow interval in seconds")]
|
|
pub slideshow: u64,
|
|
}
|