Add value hints for args
All checks were successful
All checks were successful
This commit is contained in:
@@ -43,7 +43,12 @@ pub struct EditPrivsArgs {
|
|||||||
pub json: bool,
|
pub json: bool,
|
||||||
|
|
||||||
/// Specify the text editor to use for editing privileges
|
/// 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>,
|
pub editor: Option<String>,
|
||||||
|
|
||||||
/// Disable interactive confirmation before saving changes
|
/// Disable interactive confirmation before saving changes
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ pub struct Args {
|
|||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
value_name = "PATH",
|
value_name = "PATH",
|
||||||
|
value_hint = clap::ValueHint::FilePath,
|
||||||
global = true,
|
global = true,
|
||||||
hide_short_help = true
|
hide_short_help = true
|
||||||
)]
|
)]
|
||||||
@@ -81,6 +82,7 @@ pub struct Args {
|
|||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
value_name = "PATH",
|
value_name = "PATH",
|
||||||
|
value_hint = clap::ValueHint::FilePath,
|
||||||
global = true,
|
global = true,
|
||||||
hide_short_help = true
|
hide_short_help = true
|
||||||
)]
|
)]
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ pub struct Args {
|
|||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
value_name = "PATH",
|
value_name = "PATH",
|
||||||
|
value_hint = clap::ValueHint::FilePath,
|
||||||
global = true,
|
global = true,
|
||||||
hide_short_help = true
|
hide_short_help = true
|
||||||
)]
|
)]
|
||||||
@@ -57,6 +58,7 @@ pub struct Args {
|
|||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
value_name = "PATH",
|
value_name = "PATH",
|
||||||
|
value_hint = clap::ValueHint::FilePath,
|
||||||
global = true,
|
global = true,
|
||||||
hide_short_help = true
|
hide_short_help = true
|
||||||
)]
|
)]
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ struct Args {
|
|||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
value_name = "PATH",
|
value_name = "PATH",
|
||||||
|
value_hint = clap::ValueHint::FilePath,
|
||||||
global = true,
|
global = true,
|
||||||
hide_short_help = true
|
hide_short_help = true
|
||||||
)]
|
)]
|
||||||
@@ -57,6 +58,7 @@ struct Args {
|
|||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
value_name = "PATH",
|
value_name = "PATH",
|
||||||
|
value_hint = clap::ValueHint::FilePath,
|
||||||
global = true,
|
global = true,
|
||||||
hide_short_help = true
|
hide_short_help = true
|
||||||
)]
|
)]
|
||||||
|
|||||||
Reference in New Issue
Block a user