diff --git a/packages/hurl/src/cli/options.rs b/packages/hurl/src/cli/options.rs index 54d61a169..3672a3c60 100644 --- a/packages/hurl/src/cli/options.rs +++ b/packages/hurl/src/cli/options.rs @@ -30,7 +30,6 @@ use crate::cli; use crate::cli::CliError; use crate::http::ClientOptions; use crate::runner::Value; -use crate::util::logger::BaseLogger; #[derive(Clone, Debug, PartialEq, Eq)] pub struct CliOptions { @@ -54,9 +53,8 @@ pub struct CliOptions { pub no_proxy: Option, pub output: Option, pub output_type: OutputType, - pub progress: bool, pub proxy: Option, - pub summary: bool, + pub test: bool, pub timeout: Duration, pub to_entry: Option, pub user: Option, @@ -235,12 +233,6 @@ pub fn app(version: &str) -> Command { .help("Write to FILE instead of stdout") .num_args(1) ) - .arg( - clap::Arg::new("progress") - .long("progress") - .help("Print filename and status for each test (stderr) - deprecated use --test") - .action(ArgAction::SetTrue) - ) .arg( clap::Arg::new("proxy") .short('x') @@ -263,12 +255,6 @@ pub fn app(version: &str) -> Command { .help("Generate html report to dir") .num_args(1) ) - .arg( - clap::Arg::new("summary") - .long("summary") - .help("Print test metrics at the end of the run (stderr) - deprecated use --test") - .action(ArgAction::SetTrue) - ) .arg( clap::Arg::new("test") .long("test") @@ -330,7 +316,7 @@ pub fn app(version: &str) -> Command { ) } -pub fn parse_options(matches: &ArgMatches, logger: &BaseLogger) -> Result { +pub fn parse_options(matches: &ArgMatches) -> Result { let cacert_file = match get_string(matches, "cacert_file") { None => None, Some(filename) => { @@ -410,21 +396,7 @@ pub fn parse_options(matches: &ArgMatches, logger: &BaseLogger) -> Result ClientOptions::default().timeout, Some(s) => match s.parse::() { @@ -464,9 +436,8 @@ pub fn parse_options(matches: &ArgMatches, logger: &BaseLogger) -> Result