diff options
author | Rob Mensching <rob@firegiant.com> | 2018-10-24 21:07:56 -0700 |
---|---|---|
committer | Rob Mensching <rob@robmensching.com> | 2018-10-24 21:25:56 -0700 |
commit | 85fc7be678248a0a5873c08d48941021eb0959e6 (patch) | |
tree | 3dc8f14458fb2e5f2578ba95ca69189f801a99cf /src/wixcop | |
parent | b66ea2e10a1b4be642e58319de85d2ca54991b47 (diff) | |
download | wix-85fc7be678248a0a5873c08d48941021eb0959e6.tar.gz wix-85fc7be678248a0a5873c08d48941021eb0959e6.tar.bz2 wix-85fc7be678248a0a5873c08d48941021eb0959e6.zip |
Update to changes to reorganize command-line processing
Diffstat (limited to 'src/wixcop')
-rw-r--r-- | src/wixcop/CommandLine/ConvertCommand.cs | 9 | ||||
-rw-r--r-- | src/wixcop/CommandLine/HelpCommand.cs | 10 | ||||
-rw-r--r-- | src/wixcop/CommandLine/WixCopCommandLineParser.cs | 2 |
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 | ||