22 lines
498 B
Rust
22 lines
498 B
Rust
use std::ffi::OsString;
|
|
|
|
use clap::Parser;
|
|
|
|
use crate::cli::color_when::ColorWhen;
|
|
|
|
/// Server for backing the `VaultLink` plugin
|
|
#[derive(Parser, Debug)]
|
|
#[command(version, about, long_about = None)]
|
|
pub struct Args {
|
|
#[arg(index = 1)]
|
|
pub config_path: Option<OsString>,
|
|
|
|
#[arg(
|
|
long,
|
|
value_name = "WHEN",
|
|
default_value_t = ColorWhen::Auto,
|
|
default_missing_value = "always",
|
|
value_enum
|
|
)]
|
|
pub color: ColorWhen,
|
|
}
|