From 70d112fb1ec23597b6365c3f80eec695c013960b Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 8 May 2020 21:53:58 +1000 Subject: Implement ShowLogo in wixcop. --- src/wixcop/CommandLine/ConvertCommand.cs | 5 +++-- src/wixcop/CommandLine/HelpCommand.cs | 2 +- src/wixcop/CommandLine/WixCopCommandLineParser.cs | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/wixcop/CommandLine') diff --git a/src/wixcop/CommandLine/ConvertCommand.cs b/src/wixcop/CommandLine/ConvertCommand.cs index 8b01faa7..0a765771 100644 --- a/src/wixcop/CommandLine/ConvertCommand.cs +++ b/src/wixcop/CommandLine/ConvertCommand.cs @@ -14,7 +14,7 @@ namespace WixToolset.Tools.WixCop.CommandLine { private const string SettingsFileDefault = "wixcop.settings.xml"; - public ConvertCommand(IWixToolsetServiceProvider serviceProvider, bool fixErrors, int indentationAmount, List searchPatterns, bool subDirectories, string settingsFile1, string settingsFile2) + public ConvertCommand(IWixToolsetServiceProvider serviceProvider, bool showLogo, bool fixErrors, int indentationAmount, List searchPatterns, bool subDirectories, string settingsFile1, string settingsFile2) { this.ErrorsAsWarnings = new HashSet(); this.ExemptFiles = new HashSet(); @@ -26,6 +26,7 @@ namespace WixToolset.Tools.WixCop.CommandLine this.ServiceProvider = serviceProvider; this.SettingsFile1 = settingsFile1; this.SettingsFile2 = settingsFile2; + this.ShowLogo = showLogo; this.SubDirectories = subDirectories; } @@ -51,7 +52,7 @@ namespace WixToolset.Tools.WixCop.CommandLine private bool SubDirectories { get; } - public bool ShowLogo => throw new NotImplementedException(); + public bool ShowLogo { get; } public bool StopParsing => throw new NotImplementedException(); diff --git a/src/wixcop/CommandLine/HelpCommand.cs b/src/wixcop/CommandLine/HelpCommand.cs index 1505dc59..4a173cd9 100644 --- a/src/wixcop/CommandLine/HelpCommand.cs +++ b/src/wixcop/CommandLine/HelpCommand.cs @@ -8,7 +8,7 @@ namespace WixToolset.Tools.WixCop.CommandLine internal class HelpCommand : ICommandLineCommand { - public bool ShowLogo => false; + public bool ShowLogo => true; public bool StopParsing => true; diff --git a/src/wixcop/CommandLine/WixCopCommandLineParser.cs b/src/wixcop/CommandLine/WixCopCommandLineParser.cs index 3d34a649..f06decee 100644 --- a/src/wixcop/CommandLine/WixCopCommandLineParser.cs +++ b/src/wixcop/CommandLine/WixCopCommandLineParser.cs @@ -49,6 +49,7 @@ namespace WixToolset.Tools.WixCop.CommandLine return new ConvertCommand( this.serviceProvider, + this.showLogo, this.fixErrors, this.indentationAmount, this.searchPatterns, -- cgit v1.2.3-55-g6feb