summaryrefslogtreecommitdiff
path: root/Compiler/CompilerOptions.cs
blob: c1f5c3ad0e295632f91147cf5f3336645e5c8170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace Q1.Compiler;

using CommandLine;

public class CompilerOptions
{
    [Option('i', "input", Required = true, HelpText = "Input file to compile.")]
    public string InputFile { get; set; }

    [Option('o', "output", Required = true, HelpText = "Output file to write the compiled code.")]
    public string OutputFile { get; set; }

    [Option('c', "comment-compilation", Required = false, HelpText = "Comments to preserve in the compiled result")]
    public CommentCompilationMode CommentCompilationMode { get; set; } = CommentCompilationMode.UserDefined;
}