Diff
Not logged in

Differences From Artifact [05082d0f328d756c]:

To Artifact [4375fba2fc66f9ab]:


1 +import util; 1 2 import gui; 2 3 import output; 3 4 import driver; 4 5 import solver; 5 6 import std.stdio; 6 7 pragma(lib, "dfl.lib"); 7 8 8 -void main(string[] args) 9 +void main(string[] argv) 9 10 { 10 - Driver d = new Driver(stdin); 11 + bool automate = (argv.length>=2 && std.string.indexOf(argv[1],"auto")>=0); 12 + 13 + auto d = new Driver(stdin); 11 14 d.addObserver!(GuardedOutput)(); 12 - auto g = d.addObserver!(GUI!MainSolver)(); 13 - g.set_fn(&d.command); 14 - g.run(); 15 + d.addObserver!(GUI!MainSolver)().run(&d.command, automate); 15 16 }