diff --git a/src/client/commands/edit_privs.rs b/src/client/commands/edit_privs.rs index 3c5589b..751189f 100644 --- a/src/client/commands/edit_privs.rs +++ b/src/client/commands/edit_privs.rs @@ -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, /// Disable interactive confirmation before saving changes diff --git a/src/client/mysql_admutils_compatibility/mysql_dbadm.rs b/src/client/mysql_admutils_compatibility/mysql_dbadm.rs index ebab754..214e463 100644 --- a/src/client/mysql_admutils_compatibility/mysql_dbadm.rs +++ b/src/client/mysql_admutils_compatibility/mysql_dbadm.rs @@ -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 )] diff --git a/src/client/mysql_admutils_compatibility/mysql_useradm.rs b/src/client/mysql_admutils_compatibility/mysql_useradm.rs index 22241cb..425ac84 100644 --- a/src/client/mysql_admutils_compatibility/mysql_useradm.rs +++ b/src/client/mysql_admutils_compatibility/mysql_useradm.rs @@ -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 )] diff --git a/src/main.rs b/src/main.rs index fa0bec5..1f49d3d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 )]