Skip to content
Browse files

Added -s argument to brainplus compiler to suppress header in executa…

…ble.
  • Loading branch information...
1 parent e4fdf1e commit e1bfa6d8ca1c5d5017c1443a6dd7fb621274ff3a @primaryobjects committed Feb 16, 2013
Showing with 10 additions and 3 deletions.
  1. +10 −3 AIProgrammer.Compiler/BrainPlus.cs
View
13 AIProgrammer.Compiler/BrainPlus.cs
@@ -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();
+ }
}
}";

0 comments on commit e1bfa6d

Please sign in to comment.
Something went wrong with that request. Please try again.