public static String readArg(String pPrompt, boolean pOptional){    
    String lArg = null;
    int lTries = 0;
    String lPrompt = pPrompt;
    Scanner lScanner = new Scanner(System.in);
    while(XFUtil.isNull(lArg)){
      if(lTries > 0){
        if(pOptional){
          return null;
        }
        lPrompt = "[Argument cannot be null, try again] " + pPrompt;
      }
      System.out.println(lPrompt + ": ");    
      lArg = lScanner.nextLine();
      lTries++;
    }    
    //lScanner.close();
    return lArg;
  }