diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/test/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs b/src/test/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs index 8fed7944..eddcf6e4 100644 --- a/src/test/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs +++ b/src/test/Example.Extension/ExamplePreprocessorExtensionAndCommandLine.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | 2 | ||
3 | namespace Example.Extension | 3 | namespace Example.Extension |
4 | { | 4 | { |
@@ -23,17 +23,23 @@ namespace Example.Extension | |||
23 | { | 23 | { |
24 | } | 24 | } |
25 | 25 | ||
26 | public bool TryParseArgument(IParseCommandLine parseCommandLine, string arg) | 26 | public bool TryParseArgument(ICommandLineParser parser, string argument) |
27 | { | 27 | { |
28 | if (parseCommandLine.IsSwitch(arg) && arg.Substring(1).Equals("example", StringComparison.OrdinalIgnoreCase)) | 28 | if (parser.IsSwitch(argument) && argument.Substring(1).Equals("example", StringComparison.OrdinalIgnoreCase)) |
29 | { | 29 | { |
30 | this.exampleValueFromCommandLine = parseCommandLine.GetNextArgumentOrError(arg); | 30 | this.exampleValueFromCommandLine = parser.GetNextArgumentOrError(argument); |
31 | return true; | 31 | return true; |
32 | } | 32 | } |
33 | 33 | ||
34 | return false; | 34 | return false; |
35 | } | 35 | } |
36 | 36 | ||
37 | public bool TryParseCommand(ICommandLineParser parser, out ICommandLineCommand command) | ||
38 | { | ||
39 | command = null; | ||
40 | return false; | ||
41 | } | ||
42 | |||
37 | public void PostParse() | 43 | public void PostParse() |
38 | { | 44 | { |
39 | } | 45 | } |