| 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 | /// <summary> |
| 6 | /// A command line switch description. |
| 7 | /// </summary> |
| 8 | public class CommandLineHelpSwitch |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// Creates help for command line switch. |
| 12 | /// </summary> |
| 13 | /// <param name="name">Name of switch.</param> |
| 14 | /// <param name="description">Description for switch.</param> |
| 15 | public CommandLineHelpSwitch(string name, string description) : this(name, null, description) |
| 16 | { |
| 17 | } |
| 18 | |
| 19 | /// <summary> |
| 20 | /// Creates help for command line switch. |
| 21 | /// </summary> |
| 22 | /// <param name="name">Name of switch.</param> |
| 23 | /// <param name="shortName">Optional short name of switch.</param> |
| 24 | /// <param name="description">Description for switch.</param> |
| 25 | public CommandLineHelpSwitch(string name, string shortName, string description) |
| 26 | { |
| 27 | Name = name; |
| 28 | ShortName = shortName; |
| 29 | Description = description; |
| 30 | } |
| 31 | |
| 32 | /// <summary> |
| 33 | /// Name for switch. |
| 34 | /// </summary> |
| 35 | public string Name { get; set; } |
| 36 | |
| 37 | /// <summary> |
| 38 | /// Optional short name for switch. |
| 39 | /// </summary> |
| 40 | public string ShortName { get; set; } |
| 41 | |
| 42 | /// <summary> |
| 43 | /// Description of the switch. |
| 44 | /// </summary> |
| 45 | public string Description { get; set; } |
| 46 | } |
| 47 | } |