main
cs 39 lines 1.22 KB
Raw
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
3 namespace WixToolset.Extensibility.Data
4 {
5 using WixToolset.Extensibility.Services;
6
7 /// <summary>
8 /// Parsed command-line arguments.
9 /// </summary>
10 public interface ICommandLineArguments
11 {
12 #pragma warning disable 1591 // TODO: add documentation
13 string[] OriginalArguments { get; set; }
14
15 string[] Arguments { get; set; }
16
17 string[] Extensions { get; set; }
18
19 string ErrorArgument { get; set; }
20
21 /// <summary>
22 /// Populate this argument from a string.
23 /// </summary>
24 /// <param name="commandLine">String to parse.</param>
25 void Populate(string commandLine);
26
27 /// <summary>
28 /// Populate this argument from array of strings.
29 /// </summary>
30 /// <param name="args">Array of strings.</param>
31 void Populate(string[] args);
32
33 /// <summary>
34 /// Parses this arguments after it is populated.
35 /// </summary>
36 /// <returns>Parser for this arguments.</returns>
37 ICommandLineParser Parse();
38 }
39 }