From dd7d40d268bebc3602f6628c46d8253513b5284c Mon Sep 17 00:00:00 2001 From: irongut Date: Sat, 13 Nov 2021 21:29:36 +0000 Subject: [PATCH] added hide branch + complixity CLI options #22 --- src/CodeCoverageSummary/CommandLineOptions.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/CodeCoverageSummary/CommandLineOptions.cs b/src/CodeCoverageSummary/CommandLineOptions.cs index 6ca33ec..b277fd8 100644 --- a/src/CodeCoverageSummary/CommandLineOptions.cs +++ b/src/CodeCoverageSummary/CommandLineOptions.cs @@ -21,6 +21,16 @@ namespace CodeCoverageSummary [Option(longName: "format", Required = false, HelpText = "Output Format - markdown or text.", Default = "text")] public string Format { get; set; } + [Option(longName: "hidebranch", Required = false, HelpText = "Hide Branch Rate values in the output - true or false.", Default = "false")] + public string HideBranchString { get; set; } + + public bool HideBranchRate => HideBranchString.Equals("true", StringComparison.OrdinalIgnoreCase); + + [Option(longName: "hidecomplexity", Required = false, HelpText = "Hide Complexity values in the output - true or false.", Default = "false")] + public string HideComplexityString { get; set; } + + public bool HideComplexity => HideComplexityString.Equals("true", StringComparison.OrdinalIgnoreCase); + [Option(longName: "indicators", Required = false, HelpText = "Include health indicators in the output - true or false.", Default = "true")] public string IndicatorsString { get; set; }