Skip to content

Commit

Permalink
Uniformize report_ options
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricereix committed Nov 2, 2023
1 parent 97a02f3 commit 3551978
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions packages/hurl/src/cli/options/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,30 +327,30 @@ 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")
.num_args(1)
}

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")
Expand Down
4 changes: 2 additions & 2 deletions packages/hurl/src/cli/options/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3551978

Please sign in to comment.