code: public String getSyntax() {
      if (name != null && longName != null) {
        return String.format("-%s (--%s)", name, longName);
      }
      else if (name != null) {
        return String.format("-%s", name);
      }
      else if (longName != null) {
        return String.format("--%s", longName);
      }
      throw new Error();
    }
docs: Returns the option syntax, sans optional token if option takes an argument.