class BuilderOptions {
  public static final String INFO_OPTION = "info";
  public static final String OUTPUT_OPTION = "o";
  public static final String INPUT_OPTION = "i";
  public static final String FREQ_OPTION = "freq";
  public static final String FREQ_HELP = "optional .xml file with a frequency wordlist, " 
      + "see https://dev.languagetool.org/developing-a-tagger-dictionary";
  public static final String INFO_HELP = "*.info properties file, " 
      + "see https://dev.languagetool.org/developing-a-tagger-dictionary";
  public static final String TAB_INPUT_HELP = "tab-separated plain-text dictionary file " 
      + "with format: wordform<tab>lemma<tab>postag";

  protected final Options options = new Options();

  BuilderOptions() {
    Option option = new Option(OUTPUT_OPTION, true, "output file");
    option.setRequired(true);
    options.addOption(option);
  }
  
  public void addOption(String opt, boolean hasArg, String description, boolean isRequired) {<FILL_FUNCTION_BODY>}
  
  @NotNull
  public CommandLine parseArguments(String[] args, Class<? extends DictionaryBuilder> clazz) throws ParseException {
    try {
      CommandLineParser parser = new BasicParser();
      CommandLine cmd = parser.parse(options, args);
      return cmd;
    } catch (ParseException e) {
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp(clazz.getName(), options);
      System.exit(1);
      throw e; // should never happen - just to make compiler happy
    }
  }

}

    Option option = new Option(opt, hasArg, description);
    option.setRequired(isRequired);
    options.addOption(option);
  
<no_super_class>