aboutsummaryrefslogtreecommitdiff
path: root/src/wixcop/CommandLine
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixcop/CommandLine')
-rw-r--r--src/wixcop/CommandLine/ConvertCommand.cs9
-rw-r--r--src/wixcop/CommandLine/HelpCommand.cs10
-rw-r--r--src/wixcop/CommandLine/WixCopCommandLineParser.cs2
3 files changed, 20 insertions, 1 deletions
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
50 50
51 private bool SubDirectories { get; } 51 private bool SubDirectories { get; }
52 52
53 public bool ShowLogo => throw new NotImplementedException();
54
55 public bool StopParsing => throw new NotImplementedException();
56
57 public bool TryParseArgument(ICommandLineParser parser, string argument)
58 {
59 throw new NotImplementedException();
60 }
61
53 public int Execute() 62 public int Execute()
54 { 63 {
55 // parse the settings if any were specified 64 // 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
4{ 4{
5 using System; 5 using System;
6 using WixToolset.Extensibility.Data; 6 using WixToolset.Extensibility.Data;
7 using WixToolset.Extensibility.Services;
7 8
8 internal class HelpCommand : ICommandLineCommand 9 internal class HelpCommand : ICommandLineCommand
9 { 10 {
11 public bool ShowLogo => false;
12
13 public bool StopParsing => true;
14
10 public int Execute() 15 public int Execute()
11 { 16 {
12 Console.WriteLine(" usage: wixcop.exe sourceFile [sourceFile ...]"); 17 Console.WriteLine(" usage: wixcop.exe sourceFile [sourceFile ...]");
@@ -23,5 +28,10 @@ namespace WixToolset.Tools.WixCop.CommandLine
23 28
24 return 0; 29 return 0;
25 } 30 }
31
32 public bool TryParseArgument(ICommandLineParser parser, string argument)
33 {
34 return true;
35 }
26 } 36 }
27} 37}
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
85 } 85 }
86 } 86 }
87 87
88 private bool ParseArgument(IParseCommandLine parser, string arg) 88 private bool ParseArgument(ICommandLineParser parser, string arg)
89 { 89 {
90 var parameter = arg.Substring(1); 90 var parameter = arg.Substring(1);
91 91