Beispiel #1
0
  /**
   * Get the description registered for the given option.
   *
   * @param optionName The name of the option the description of which to fetch.
   * @return The description of the given option.
   */
  public static String getDescription(String optionName) {
    // Ensure that the options stash is created
    init();

    Option<?> opt = get(optionName);
    if (opt != null && opt.getDescription() != null) {
      return opt.getDescription();
    }
    return null;
  }