private static List<String> getSynonyms(CliOption option) {
    List<String> synonyms = new ArrayList<>();
    String[] keys = option.key();
    if (keys.length < 2) {
      return synonyms;
    }
    // if the primary key is empty (like sh and help command), then there should be no synonyms.
    if ("".equals(keys[0])) {
      return synonyms;
    }

    synonyms.addAll(Arrays.asList(keys).subList(1, keys.length));
    return synonyms;
  }
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