public Set<String> getOptions(String command) {
    Method method = getCommandMethod(command);
    Set<String> optionList = new HashSet<>();
    Annotation[][] annotations = method.getParameterAnnotations();
    if (annotations == null || annotations.length == 0) {
      // can't validate arguments if command doesn't have any
      return optionList;
    }

    for (Annotation[] annotation : annotations) {
      CliOption cliOption = getAnnotation(annotation, CliOption.class);
      optionList.add(getPrimaryKey(cliOption));
    }
    return optionList;
  }
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