From 85fc7be678248a0a5873c08d48941021eb0959e6 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 24 Oct 2018 21:07:56 -0700 Subject: Update to changes to reorganize command-line processing --- src/wixcop/CommandLine/ConvertCommand.cs | 9 +++++++++ src/wixcop/CommandLine/HelpCommand.cs | 10 ++++++++++ src/wixcop/CommandLine/WixCopCommandLineParser.cs | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) (limited to 'src/wixcop/CommandLine') diff --git a/src/wixcop/CommandLine/ConvertCommand.cs b/src/wixcop/CommandLine/ConvertCommand.cs index ab7cd359..c65652ab 100644 --- a/src/wixcop/CommandLine/ConvertCommand.cs +++ b/src/wixcop/CommandLine/ConvertCommand.cs @@ -50,6 +50,15 @@ namespace WixToolset.Tools.WixCop.CommandLine private bool SubDirectories { get; } + public bool ShowLogo => throw new NotImplementedException(); + + public bool StopParsing => throw new NotImplementedException(); + + public bool TryParseArgument(ICommandLineParser parser, string argument) + { + throw new NotImplementedException(); + } + public int Execute() { // parse the settings if any were specified diff --git a/src/wixcop/CommandLine/HelpCommand.cs b/src/wixcop/CommandLine/HelpCommand.cs index bfb784b0..1505dc59 100644 --- a/src/wixcop/CommandLine/HelpCommand.cs +++ b/src/wixcop/CommandLine/HelpCommand.cs @@ -4,9 +4,14 @@ namespace WixToolset.Tools.WixCop.CommandLine { using System; using WixToolset.Extensibility.Data; + using WixToolset.Extensibility.Services; internal class HelpCommand : ICommandLineCommand { + public bool ShowLogo => false; + + public bool StopParsing => true; + public int Execute() { Console.WriteLine(" usage: wixcop.exe sourceFile [sourceFile ...]"); @@ -23,5 +28,10 @@ namespace WixToolset.Tools.WixCop.CommandLine return 0; } + + public bool TryParseArgument(ICommandLineParser parser, string argument) + { + return true; + } } } diff --git a/src/wixcop/CommandLine/WixCopCommandLineParser.cs b/src/wixcop/CommandLine/WixCopCommandLineParser.cs index ae826d4f..73247dae 100644 --- a/src/wixcop/CommandLine/WixCopCommandLineParser.cs +++ b/src/wixcop/CommandLine/WixCopCommandLineParser.cs @@ -85,7 +85,7 @@ namespace WixToolset.Tools.WixCop.CommandLine } } - private bool ParseArgument(IParseCommandLine parser, string arg) + private bool ParseArgument(ICommandLineParser parser, string arg) { var parameter = arg.Substring(1); -- cgit v1.2.3-55-g6feb