From 93ea46b31d7dc13354fc16308f73163375de6af7 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 12 Dec 2023 20:53:41 +0900 Subject: fix(coverage): rename --pretty to --detailed (#21543) --- cli/args/flags.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 5d692cafc..8899cbbb1 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -87,7 +87,7 @@ pub struct CompletionsFlags { #[derive(Clone, Debug, Eq, PartialEq)] pub enum CoverageType { Summary, - Pretty, + Detailed, Lcov, Html, } @@ -1415,9 +1415,9 @@ Generate html reports from lcov: .action(ArgAction::SetTrue), ) .arg( - Arg::new("pretty") - .long("pretty") - .help("Output coverage report in pretty format in the terminal.") + Arg::new("detailed") + .long("detailed") + .help("Output coverage report in detailed format in the terminal.") .action(ArgAction::SetTrue), ) .arg( @@ -3327,8 +3327,8 @@ fn coverage_parse(flags: &mut Flags, matches: &mut ArgMatches) { CoverageType::Lcov } else if matches.get_flag("html") { CoverageType::Html - } else if matches.get_flag("pretty") { - CoverageType::Pretty + } else if matches.get_flag("detailed") { + CoverageType::Detailed } else { CoverageType::Summary }; -- cgit v1.2.3