From 5d427af23be390b97cdfc9641a6f30546c0d8d11 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Tue, 29 Aug 2023 11:16:19 -0700 Subject: [PATCH] Add header indicating file was autogenerated --- source/Bottle/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Bottle/Program.cs b/source/Bottle/Program.cs index 38fac27..8c5c3b0 100644 --- a/source/Bottle/Program.cs +++ b/source/Bottle/Program.cs @@ -11,6 +11,9 @@ namespace Bottle { public class Program { + public static string Header = "/*\n\nThis code was autogenerated by Bottle. Do not manually edit.\n\n*/"; + + private static void Usage() { Console.WriteLine("Bottle\nJson to C# transformer\n\nBottle [JsonFile] [OutputFile]"); @@ -41,6 +44,8 @@ namespace Bottle MirrorWriter bw = new MirrorWriter(); + bw.WriteLine(Header); + bw.WriteLine($"using System;"); bw.WriteLine();