Add short name -v for verbose option

This commit is contained in:
Fabrice Reix 2024-01-10 16:36:59 +01:00
parent c73a90ab15
commit 280b3451f2
No known key found for this signature in database
GPG Key ID: BF5213154B2E7155
3 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
name: verbose
long: verbose
short: v
help: Turn on verbose
---
Turn on verbose output on standard error stream.

View File

@ -110,7 +110,7 @@ Options:
Define a variable
--variables-file <FILE>
Define a properties file in which you define your variables
--verbose
-v, --verbose
Turn on verbose
--very-verbose
Turn on verbose output, including HTTP response and libcurl logs

View File

@ -459,6 +459,7 @@ pub fn variables_file() -> clap::Arg {
pub fn verbose() -> clap::Arg {
clap::Arg::new("verbose")
.long("verbose")
.short('v')
.help("Turn on verbose")
.action(ArgAction::SetTrue)
}