diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-09-17 15:35:20 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-09-17 16:00:11 -0700 |
| commit | d3d3649a68cb1fa589fdd987a6690dbd5d671f0d (patch) | |
| tree | 44fe37ee352b7e3a355cc1e08b1d7d5988c14cc0 /src/WixToolset.Core/CommandLine/HelpCommand.cs | |
| parent | a62610d23d6feb98be3b1e529a4e81b19d77d9d8 (diff) | |
| download | wix-d3d3649a68cb1fa589fdd987a6690dbd5d671f0d.tar.gz wix-d3d3649a68cb1fa589fdd987a6690dbd5d671f0d.tar.bz2 wix-d3d3649a68cb1fa589fdd987a6690dbd5d671f0d.zip | |
Initial code commit
Diffstat (limited to 'src/WixToolset.Core/CommandLine/HelpCommand.cs')
| -rw-r--r-- | src/WixToolset.Core/CommandLine/HelpCommand.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/WixToolset.Core/CommandLine/HelpCommand.cs b/src/WixToolset.Core/CommandLine/HelpCommand.cs new file mode 100644 index 00000000..1c101781 --- /dev/null +++ b/src/WixToolset.Core/CommandLine/HelpCommand.cs | |||
| @@ -0,0 +1,30 @@ | |||
| 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.Core | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | |||
| 7 | internal class HelpCommand : ICommand | ||
| 8 | { | ||
| 9 | public HelpCommand(Commands command) | ||
| 10 | { | ||
| 11 | this.Command = command; | ||
| 12 | } | ||
| 13 | |||
| 14 | public Commands Command { get; } | ||
| 15 | |||
| 16 | public int Execute() | ||
| 17 | { | ||
| 18 | if (this.Command == Commands.Unknown) | ||
| 19 | { | ||
| 20 | Console.WriteLine(); | ||
| 21 | } | ||
| 22 | else | ||
| 23 | { | ||
| 24 | Console.WriteLine(); | ||
| 25 | } | ||
| 26 | |||
| 27 | return -1; | ||
| 28 | } | ||
| 29 | } | ||
| 30 | } | ||
