I saw somewhere online someone showing what appeared to be valid C# code. It allowed for custom parameters in the main method to be passed as command-line arguments. It looked something like this:
static void Main(FileInfo input, int maxSize = 9, bool someflag = false)
{
// code
}
This could be used in the command line like this:
$ myApp hello_world.txt --maxSize 10 --someflag
Is this actually possible, or is someone pulling my leg?