code: private static boolean parseInputArgs(String[] args) {
      CommandLineParser parser = new DefaultParser();
      CommandLine cmd;
      try {
        cmd = parser.parse(OPTIONS, args);
      } catch (ParseException e) {
        System.out.println("Failed to parse input args: " + e);
        return false;
      }
      sHelp = cmd.hasOption("help");
      sMaster = cmd.getOptionValue("master", "FileSystemMaster");
      sStart = Long.decode(cmd.getOptionValue("start", "0"));
      sEnd = Long.decode(cmd.getOptionValue("end", Long.valueOf(Long.MAX_VALUE).toString()));
      sOutputDir =
          new File(cmd.getOptionValue("outputDir", "journal_dump-" + System.currentTimeMillis()))
              .getAbsolutePath();
      sCheckpointsDir = PathUtils.concatPath(sOutputDir, "checkpoints");
      sJournalEntryFile = PathUtils.concatPath(sOutputDir, "edits.txt");
      return true;
    }
docs: Parses the input args with a command line format, using
  {@link org.apache.commons.cli.CommandLineParser}.
  
  @param args the input args
  @return true if parsing succeeded