mirror of
https://github.com/TeFiLeDo/tree-owners.git
synced 2026-03-03 13:31:18 +01:00
21 lines
426 B
Rust
21 lines
426 B
Rust
use std::path::PathBuf;
|
|
|
|
use clap::Parser;
|
|
|
|
/// Command line arguments.
|
|
#[derive(Debug, Parser)]
|
|
#[clap(author, about, version)]
|
|
pub(crate) struct Args {
|
|
/// Whether to output data as json.
|
|
#[clap(long)]
|
|
pub json: bool,
|
|
|
|
/// Whether to output raw uid and gid numbers.
|
|
#[clap(long)]
|
|
pub raw: bool,
|
|
|
|
/// The roots to use for discovery.
|
|
#[clap(default_value = ".")]
|
|
pub roots: Vec<PathBuf>,
|
|
}
|