private static String getOptionString(CliOption cliOption, Class<?> optionType) {
    String key0 = cliOption.key()[0];
    if ("".equals(key0)) {
      return (cliOption.key()[1]);
    }

    StringBuilder buffer = new StringBuilder();
    buffer.append(LONG_OPTION_SPECIFIER).append(key0);

    boolean hasSpecifiedDefault = isNonEmptyAnnotation(cliOption.specifiedDefaultValue());

    if (hasSpecifiedDefault) {
      buffer.append("(");
    }

    buffer.append(OPTION_VALUE_SPECIFIER).append(VALUE_FIELD);

    if (hasSpecifiedDefault) {
      buffer.append(")?");
    }

    if (isCollectionOrArrayType(optionType)) {
      buffer.append("(").append(",").append(VALUE_FIELD).append(")*");
    }

    return buffer.toString();
  }
this builds the following format of strings: key (as in sh and help) --key=value --key(=value)?
(if has specifiedDefaultValue) --key=value(,value)* (if the value is a list)

@return option string
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/help/Helper.java