Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Program.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@

using System.IO;
using CodeConverter;
using CommandLine;

namespace CodeConversion
{
public class Options
{
[Option('i', "InputFile", Required = true, HelpText = "File to convert.", SetName = "File")]
public string InputFile { get; set; }

[Option('o', "OutputPath", Required = true, HelpText = "Output file.", SetName = "File")]
[Option('o', "OutputFile", Required = true, HelpText = "Output file.", SetName = "File")]
public string OutputFile { get; set; }

[Option("PowerShell", Required = true, HelpText = "PowerShell script block to convert to C#", SetName = "PowerShell")]
[Option("PowerShell", HelpText = "PowerShell script block to convert to C#", SetName = "PowerShell")]
public string PowerShell { get; set; }

[Option("CSharp", Required = true, HelpText = "C# code to convert to PowerShell", SetName = "CSharp")]
[Option("CSharp", HelpText = "C# code to convert to PowerShell", SetName = "CSharp")]
public string CSharp { get; set; }
}

Expand Down