Add value hints for args
All checks were successful
Build and test / check (push) Successful in 1m33s
Build and test / build (push) Successful in 2m44s
Build and test / test (push) Successful in 2m50s
Build and test / check-license (push) Successful in 5m28s
Build and test / docs (push) Successful in 4m40s

This commit is contained in:
2025-12-01 15:46:38 +09:00
parent 1af9748530
commit cb3f3f3e1d
4 changed files with 12 additions and 1 deletions

View File

@@ -43,7 +43,12 @@ pub struct EditPrivsArgs {
pub json: bool,
/// Specify the text editor to use for editing privileges
#[arg(short, long)]
#[arg(
short,
long,
value_name = "COMMAND",
value_hint = clap::ValueHint::CommandString,
)]
pub editor: Option<String>,
/// Disable interactive confirmation before saving changes

View File

@@ -71,6 +71,7 @@ pub struct Args {
short,
long,
value_name = "PATH",
value_hint = clap::ValueHint::FilePath,
global = true,
hide_short_help = true
)]
@@ -81,6 +82,7 @@ pub struct Args {
short,
long,
value_name = "PATH",
value_hint = clap::ValueHint::FilePath,
global = true,
hide_short_help = true
)]

View File

@@ -47,6 +47,7 @@ pub struct Args {
short,
long,
value_name = "PATH",
value_hint = clap::ValueHint::FilePath,
global = true,
hide_short_help = true
)]
@@ -57,6 +58,7 @@ pub struct Args {
short,
long,
value_name = "PATH",
value_hint = clap::ValueHint::FilePath,
global = true,
hide_short_help = true
)]

View File

@@ -47,6 +47,7 @@ struct Args {
short,
long,
value_name = "PATH",
value_hint = clap::ValueHint::FilePath,
global = true,
hide_short_help = true
)]
@@ -57,6 +58,7 @@ struct Args {
short,
long,
value_name = "PATH",
value_hint = clap::ValueHint::FilePath,
global = true,
hide_short_help = true
)]