From fb2df0e24c0709ce94c396624cf86c70e02da01f Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 2 Dec 2017 00:45:33 -0800 Subject: Fix IExtensionCommandLine and IPreprocessorExtension --- .../Services/IParseCommandLine.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/WixToolset.Extensibility/Services/IParseCommandLine.cs (limited to 'src/WixToolset.Extensibility/Services/IParseCommandLine.cs') 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 @@ +// 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. + +namespace WixToolset.Extensibility.Services +{ + using System.Collections.Generic; + + public interface IParseCommandLine + { + bool IsSwitch(string arg); + + bool IsSwitchAt(IEnumerable args, int index); + + void GetNextArgumentOrError(ref string arg); + + void GetNextArgumentOrError(IList args); + + void GetNextArgumentAsFilePathOrError(IList args, string fileType); + + bool TryGetNextArgumentOrError(out string arg); + } +} -- cgit v1.2.3-55-g6feb