Fix parsing

This commit is contained in:
Andras Schmelczer 2025-03-24 22:03:43 +00:00
parent baba8f82bf
commit ccff1cfc7a
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -2,10 +2,13 @@ use std::ffi::OsString;
use clap::{Parser, ValueEnum}; use clap::{Parser, ValueEnum};
/// Simple program to greet a person /// Server for backing the VaultLink plugin
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(version, about, long_about = None)] #[command(version, about, long_about = None)]
pub struct Args { pub struct Args {
#[arg(index = 1)]
pub config_path: Option<OsString>,
#[arg( #[arg(
long, long,
require_equals = true, require_equals = true,
@ -16,9 +19,6 @@ pub struct Args {
value_enum value_enum
)] )]
pub color: ColorWhen, pub color: ColorWhen,
#[arg(last = true)]
pub config_path: Option<OsString>,
} }
#[derive(ValueEnum, Copy, Clone, Debug, PartialEq, Eq)] #[derive(ValueEnum, Copy, Clone, Debug, PartialEq, Eq)]