mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 00:44:55 +03:00
Uniformize report_ options
This commit is contained in:
parent
97a02f3990
commit
3551978a95
@ -327,8 +327,16 @@ pub fn proxy() -> clap::Arg {
|
||||
.num_args(1)
|
||||
}
|
||||
|
||||
pub fn report_html() -> clap::Arg {
|
||||
clap::Arg::new("report_html")
|
||||
.long("report-html")
|
||||
.value_name("DIR")
|
||||
.help("Generate HTML report to DIR")
|
||||
.num_args(1)
|
||||
}
|
||||
|
||||
pub fn report_junit() -> clap::Arg {
|
||||
clap::Arg::new("junit")
|
||||
clap::Arg::new("report_junit")
|
||||
.long("report-junit")
|
||||
.value_name("FILE")
|
||||
.help("Write a JUnit XML report to FILE")
|
||||
@ -336,21 +344,13 @@ pub fn report_junit() -> clap::Arg {
|
||||
}
|
||||
|
||||
pub fn report_tap() -> clap::Arg {
|
||||
clap::Arg::new("tap")
|
||||
clap::Arg::new("report_tap")
|
||||
.long("report-tap")
|
||||
.value_name("FILE")
|
||||
.help("Write a TAP report to FILE")
|
||||
.num_args(1)
|
||||
}
|
||||
|
||||
pub fn report_html() -> clap::Arg {
|
||||
clap::Arg::new("report_html")
|
||||
.long("report-html")
|
||||
.value_name("DIR")
|
||||
.help("Generate HTML report to DIR")
|
||||
.num_args(1)
|
||||
}
|
||||
|
||||
pub fn resolve() -> clap::Arg {
|
||||
clap::Arg::new("resolve")
|
||||
.long("resolve")
|
||||
|
@ -235,7 +235,7 @@ pub fn ip_resolve(arg_matches: &ArgMatches) -> Option<IpResolve> {
|
||||
}
|
||||
|
||||
pub fn junit_file(arg_matches: &ArgMatches) -> Option<String> {
|
||||
get::<String>(arg_matches, "junit")
|
||||
get::<String>(arg_matches, "report_junit")
|
||||
}
|
||||
|
||||
pub fn max_redirect(arg_matches: &ArgMatches) -> Option<usize> {
|
||||
@ -302,7 +302,7 @@ pub fn ssl_no_revoke(arg_matches: &ArgMatches) -> bool {
|
||||
}
|
||||
|
||||
pub fn tap_file(arg_matches: &ArgMatches) -> Option<String> {
|
||||
get::<String>(arg_matches, "tap")
|
||||
get::<String>(arg_matches, "report_tap")
|
||||
}
|
||||
|
||||
pub fn test(arg_matches: &ArgMatches) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user