diff options
Diffstat (limited to 'Compiler/CompilerOptions.cs')
| -rw-r--r-- | Compiler/CompilerOptions.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Compiler/CompilerOptions.cs b/Compiler/CompilerOptions.cs new file mode 100644 index 0000000..c1f5c3a --- /dev/null +++ b/Compiler/CompilerOptions.cs @@ -0,0 +1,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; +}
\ No newline at end of file |
