Пример #1
0
 private static void checkReverse(Parameters parameters) {
   String reverseValue = parameters.getValue("reverse");
   if (reverseValue == null) return;
   Reversal reversal = new Reversal(reverseValue, output);
   reversal.reverse();
   System.exit(0);
 }
Пример #2
0
 private static void checkYahoo(Parameters parameters) {
   String yahooValue = parameters.getValue("fixYahoo");
   if (yahooValue == null) {
     return;
   }
   YahooFixer yahooFixer = new YahooFixer(yahooValue);
   yahooFixer.fixFiles();
   System.exit(0);
 }
Пример #3
0
 private static void checkShowPopulation(Parameters parameters) {
   String value = parameters.getValue("showPopulation");
   if (value != null) {
     try {
       showPopulation(value);
     } catch (IllegalAccessException e) {
       Debug.d(e);
     }
     System.exit(0);
   }
 }
Пример #4
0
 private static void exit(ErrorCodes code) {
   System.exit(code.getValue());
 }
Пример #5
0
 private static void checkVersionRequest(Parameters parameters) {
   if (parameters.getValue("showVersion") != null) {
     System.out.println(Main.VERSION);
     System.exit(0);
   }
 }