Fix parsing
This commit is contained in:
parent
baba8f82bf
commit
ccff1cfc7a
1 changed files with 4 additions and 4 deletions
|
|
@ -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)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue