private static String getPrimaryKey(CliOption option) {
    String[] keys = option.key();
    if (keys.length == 0) {
      throw new RuntimeException("Invalid option keys");
    } else if ("".equals(keys[0])) {
      return keys[1];
    } else {
      return keys[0];
    }
  }
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