package com.vampirehemophile.ghosts.main;

public class Main {

  public static int WINDOW_WIDTH = 500, WINDOW_HEIGHT = 500;


  public static void main(String[] args) {

    boolean help = false;
    boolean gui = false;
    boolean cli = false;


    for (String opt : args) {
      if (opt.equals("-h") || opt.equals("--help")) {
        help = true;
        break;
      } else if (opt.equals("--nogui")) {
        cli = true;

      } else {
        System.err.println("Unrecognized option.");
        System.exit(1);
      }
    }

    if (help) {
      System.out.println("Ghosts options:\n    -h --help\n    --nogui\n     --gui");
    } else if (cli) {
      CliGame cg = new CliGame();
      cg.start();
    } else {
      GuiGame game = new GuiGame("Game Title !", WINDOW_WIDTH, WINDOW_HEIGHT);
      game.start();
    }

  }

}

@@ -212,40 +212,13 @@
 i = 
-false;%0A    boolean cli = false;%0A
+true;
 %0A%0A  
@@ -389,21 +389,21 @@
     
-cl
+gu
 i = 
-tru
+fals
 e;%0A
-%0A
     
@@ -593,20 +593,8 @@
 ogui
-%5Cn     --gui
 %22);%0A
@@ -612,77 +612,12 @@
 if (
-cli) %7B%0A      CliGame cg = new CliGame();%0A      cg.start();%0A    %7D else
+gui)
  %7B%0A 
@@ -718,18 +718,85 @@
 ();%0A
+    %7D else %7B%0A      CliGame game = new CliGame();%0A      game.start();%0A
     %7D%0A
-%0A
   %7D%0A
-%0A
 %7D%0A

Clean Main