Add a mandatory string option
@param <T> Type of option
@param name Option name Option name without
@param description Option description
433770
public final <T> void addOption(String name, String description)
    {
        addOption(String.class, name, description, null);
    }
1289505
public void addAttribute(String name, String value) {
        checkType(name, String.class);
        attributes.put(name, value);
    }
1168060
public void addParamPost(String name, String value) {
        addParam(name, value, NameValuePair.TYPE_POST_DATA);
    }
576114
public Options addOption(String opt, String description)
    {
        addOption(opt, null, false, description);
        return this;
    }
1137824
public void addParameter(String name, Object value) {
        if (name == null) {
            throw new IllegalArgumentException("name must not be null");
        }
        params.put(name, value);
    }
303331
private void addOption(CliOptionContainer optionContainer) {

    CliOption cliOption = optionContainer.getOption();
    addOption(cliOption.name(), optionContainer);
    for (String alias : cliOption.aliases()) {
      addOption(alias, optionContainer);
    }
    this.optionList.add(optionContainer);
    String modeId = optionContainer.getOption().mode();
    requireMode(modeId, optionContainer);
  }
1178570
public void addProperty(String name, String value) {
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException("A property name must be specified.");
        }

        if (value == null || value.trim().length() == 0) {
            throw new IllegalArgumentException("A property value must be specified.");
        }

        properties.put(name, value);
    }
403980
public function addOpt(
        string $name,
        string $shortcut = null,
        int $mode = null,
        string $description = '',
        $default = null
    ): self {
        return $this->addOption($name, $shortcut, $mode, $description, $default);
    }
1228510
public final <T> void addOption(Class<T> cls, String name, String description, String exclusiveGroup, boolean mandatory)
    {
        if (names.contains(name))
        {
            throw new IllegalArgumentException(name+" is already added as argument");
        }
        Option opt = new Option(cls, name, description, exclusiveGroup, mandatory);
        Option old = map.put(name, opt);
        if (old != null)
        {
            throw new IllegalArgumentException(name+" was already added");
        }
        if (exclusiveGroup != null)
        {
            groups.add(exclusiveGroup, opt);
        }
    }
629608
public void addService(TDefinitions descriptionType)
    {
        String interfacens;
        String interfacename;
        QName qname;
        String name;
        
        if (soapFactory == null)
            soapFactory = new org.xmlsoap.schemas.wsdl.soap.ObjectFactory();
        
        TService service = wsdlFactory.createTService();
        descriptionType.getAnyTopLevelOptionalElement().add(service);
        
        name = this.getControlProperty(MessageControl.SERVICE_NAME);
        service.setName(name);
        
        interfacens = this.getNamespace();
        interfacename = this.getControlProperty(MessageControl.BINDING_NAME);
        qname = new QName(interfacens, interfacename);
        
        TPort port = wsdlFactory.createTPort();
        service.getPort().add(port);
        port.setName(name + "Port");
        port.setBinding(qname);
        
        org.xmlsoap.schemas.wsdl.soap.TAddress tAddress = soapFactory.createTAddress();
        port.getAny().add(soapFactory.createAddress(tAddress));
        
        String address = this.getURIValue(this.getRecord(MessageControl.MESSAGE_CONTROL_FILE).getField(MessageControl.WEB_SERVICES_SERVER).toString());  // Important - This is the web services URL
        tAddress.setLocation(address);
    }
1223038
public void setAnnotation( String name, String value)
    {
    String annotation = StringUtils.trimToNull( name);
    if( annotation == null)
      {
      throw new IllegalArgumentException( "Annotation name must be non-blank");
      }
    if( value == null)
      {
      annotations_.remove( annotation);
      }
    else
      {
      annotations_.put( annotation, value);
      }
    }
510721
public Message addContent(String name, String type, String value) {
        content.put(name, new Content(type, value));
        return this;
    }
95830
public function setArguments($name, $required = false, $description = 'Argument description')
    {
        $required ? $required = InputArgument::REQUIRED : $required = InputArgument::OPTIONAL;
        $this->addArgument($name, $required, $description);
    }
709141
protected function addOptionInput($name, $requirement = null, $description = '', $value = null)
    {
        $this->inputs[] = new Option($name, $requirement, $description, $value);
    }
386779
def DEFINE_constant_string(self, name, default, help):
    """"""
    self.AddOption(
        type_info.String(name=name, default=default or "", description=help),
        constant=True)
829112
public StringConstant addString(String name)
  {
    StringConstant entry = getString(name);

    if (entry != null) {
      return entry;
    }

    Utf8Constant utf8 = addUTF8(name);

    entry = new StringConstant(this, _entries.size(), utf8.getIndex());

    addConstant(entry);

    return entry;
  }
1252751
private void addValue(String name, ValueDescriptor<?> value) {
        if (arrayValueDescriptor != null && name == null) {
            getArrayValue().add(value);
        } else {
            setValue(descriptor, value);
        }
    }