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.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/Services/IParseCommandLine.cs b/src/WixToolset.Extensibility/Services/IParseCommandLine.cs
new file mode 100644
index 00000000..1b23be14
--- /dev/null
+++ b/src/WixToolset.Extensibility/Services/IParseCommandLine.cs
@@ -0,0 +1,21 @@
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 bool IsSwitch(string arg);
10
11 bool IsSwitchAt(IEnumerable<string> args, int index);
12
13 void GetNextArgumentOrError(ref string arg);
14
15 void GetNextArgumentOrError(IList<string> args);
16
17 void GetNextArgumentAsFilePathOrError(IList<string> args, string fileType);
18
19 bool TryGetNextArgumentOrError(out string arg);
20 }
21}