Fix very-verbose taken into account only if verbose is true.

This commit is contained in:
jcamiel 2023-05-25 18:04:20 +02:00
parent baac5e8b5a
commit b624003679
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
3 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
hurl tests_ok/very_verbose.hurl --very-verbose --location --verbose
hurl tests_ok/very_verbose.hurl --very-verbose --location

View File

@ -1,3 +1,3 @@
#!/bin/bash
set -Eeuo pipefail
hurl tests_ok/very_verbose.hurl --very-verbose --location --verbose
hurl tests_ok/very_verbose.hurl --very-verbose --location

View File

@ -258,8 +258,8 @@ impl Options {
let connects_to = self.connects_to.clone();
let follow_location = self.follow_location;
let verbosity = match (self.verbose, self.very_verbose) {
(true, true) => Some(Verbosity::VeryVerbose),
(true, _) => Some(Verbosity::Verbose),
(_, true) => Some(Verbosity::VeryVerbose),
(true, false) => Some(Verbosity::Verbose),
_ => None,
};
let insecure = self.insecure;