Skip to content

Arguments

Lewis Page edited this page Mar 12, 2021 · 1 revision

Making more advanced TLCS applications

Contrary to the name, TLCS can make any C# program that is exclusive to one file to run- this means that you can use programs with string[] args

However, to do this you do need to make a fully blown C# file:

public static class Program
{

  public static void Main(string[] args)
  {
     System.Console.WriteLine(args[0]);
  }

}

however, after that, all you need to do is type tlcs Program.cs "Hello world", and it will work!

Clone this wiki locally