Skip to content

Commit

Permalink
Add short name -v for verbose option
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricereix committed Jan 10, 2024
1 parent c73a90a commit 280b345
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/spec/options/hurl/verbose.option
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: verbose
long: verbose
short: v
help: Turn on verbose
---
Turn on verbose output on standard error stream.
Expand Down
2 changes: 1 addition & 1 deletion integration/hurl/tests_ok/help.out.pattern
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/hurl/src/cli/options/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 280b345

Please sign in to comment.