Skip to content

Commit

Permalink
Added -s argument to brainplus compiler to suppress header in executa…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
primaryobjects committed Feb 16, 2013
1 parent e4fdf1e commit e1bfa6d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions AIProgrammer.Compiler/BrainPlus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,20 @@ public static void Main(string[] args)
string program = ""[SOURCE]"";
IFitness fitness = new [FITNESSMETHOD](null, [PARAMETERS]);
[HEADER]
// Specify -s to supress header text.
if (args.Length == 0 || args[0] != ""-s"")
{
[HEADER]
}
Console.WriteLine(fitness.RunProgram(program));
Console.WriteLine();
Console.Write(""Press any key to continue.."");
Console.ReadKey();
if (args.Length == 0 || args[0] != ""-s"")
{
Console.Write(""Press any key to continue.."");
Console.ReadKey();
}
}
}";

Expand Down

0 comments on commit e1bfa6d

Please sign in to comment.