mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 16:21:04 +00:00
40 lines
946 B
Rust
40 lines
946 B
Rust
use std::path::PathBuf;
|
|
|
|
use clap::{Parser, command};
|
|
|
|
#[derive(Debug, Default, Parser)]
|
|
#[command(name = "yazi")]
|
|
pub struct Args {
|
|
/// Set the current working entry
|
|
#[arg(index = 1, num_args = 1..=9)]
|
|
pub entries: Vec<PathBuf>,
|
|
|
|
/// Write the cwd on exit to this file
|
|
#[arg(long)]
|
|
pub cwd_file: Option<PathBuf>,
|
|
/// Write the selected files to this file on open fired
|
|
#[arg(long)]
|
|
pub chooser_file: Option<PathBuf>,
|
|
|
|
/// Clear the cache directory
|
|
#[arg(long)]
|
|
pub clear_cache: bool,
|
|
|
|
/// Use the specified client ID, must be a globally unique number
|
|
#[arg(long)]
|
|
pub client_id: Option<u64>,
|
|
/// Report the specified local events to stdout
|
|
#[arg(long)]
|
|
pub local_events: Option<String>,
|
|
/// Report the specified remote events to stdout
|
|
#[arg(long)]
|
|
pub remote_events: Option<String>,
|
|
|
|
/// Print debug information
|
|
#[arg(long)]
|
|
pub debug: bool,
|
|
|
|
/// Print version
|
|
#[arg(short = 'V', long)]
|
|
pub version: bool,
|
|
}
|