aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Extensibility/Services/IParseCommandLine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Extensibility/Services/IParseCommandLine.cs')
-rw-r--r--src/WixToolset.Extensibility/Services/IParseCommandLine.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/WixToolset.Extensibility/Services/IParseCommandLine.cs b/src/WixToolset.Extensibility/Services/IParseCommandLine.cs
deleted file mode 100644
index 3753b4f2..00000000
--- a/src/WixToolset.Extensibility/Services/IParseCommandLine.cs
+++ /dev/null
@@ -1,34 +0,0 @@
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
3namespace WixToolset.Extensibility.Services
4{
5 using System.Collections.Generic;
6
7 public interface IParseCommandLine
8 {
9 string ErrorArgument { get; set; }
10
11 /// <summary>
12 /// Validates that a valid switch (starts with "/" or "-"), and returns a bool indicating its validity
13 /// </summary>
14 /// <param name="arg">The string check.</param>
15 /// <returns>True if a valid switch, otherwise false.</returns>
16 bool IsSwitch(string arg);
17
18 void GetArgumentAsFilePathOrError(string argument, string fileType, IList<string> paths);
19
20 string GetNextArgumentOrError(string commandLineSwitch);
21
22 bool GetNextArgumentOrError(string commandLineSwitch, IList<string> argument);
23
24 string GetNextArgumentAsDirectoryOrError(string commandLineSwitch);
25
26 bool GetNextArgumentAsDirectoryOrError(string commandLineSwitch, IList<string> directories);
27
28 string GetNextArgumentAsFilePathOrError(string commandLineSwitch);
29
30 bool GetNextArgumentAsFilePathOrError(string commandLineSwitch, string fileType, IList<string> paths);
31
32 bool TryGetNextSwitchOrArgument(out string arg);
33 }
34}