Replies the string representation of a command-line option.

@param name the name of the option.
@param value the value to put in the command-line.
@return the string representation of the command-line option.
971718
protected static String formatCommandLineOption(String name, String value) {
		final StringBuilder str = new StringBuilder();
		str.append("--"); //$NON-NLS-1$
		if (!Strings.isNullOrEmpty(name)) {
			str.append(name);
			if (!Strings.isNullOrEmpty(value)) {
				str.append("="); //$NON-NLS-1$
				str.append(value);
			}
		}
		return str.toString();
	}
739172
public static List<String> get(String name, @Nullable Boolean value) {
    if (value == null) {
      return Collections.emptyList();
    }
    return Arrays.asList("--" + name + "=" + value.toString());
  }
167397
@SuppressWarnings("unchecked")
  public String getString(String name) {
    return ((Value<String>) getValue(name)).get();
  }
951920
public RuntimeEnvironmentBuilder addConfiguration(String name, String value) {
        if (name == null || value == null) {
            return this;
        }
        _runtimeEnvironment.addToConfiguration(name, value);

        return this;
    }
1107176
private void printValue(String name, String value) {

		this.out.println(
				"  " + SimpleAnsi.INTENSITY_BOLD + name
				+ SimpleAnsi.INTENSITY_NORMAL
				+ spaces( PAD - name.length())
				+ "   " + value );
	}
49227
public static String shellifyOptionValue(String value)
   {
      return COLONS.matcher(WHITESPACES.matcher(value.trim()).replaceAll("_")).replaceAll("").toUpperCase();
   }
417880
@Override
    public Object getValue(String name)
    {
        if (arguments == null)
        {
            throw new IllegalStateException("setArgs not called");
        }
        Object ob = options.get(name);
        if (ob != null)
        {
            return ob;
        }
        return arguments.get(name);
    }
1212685
public Value get(String name) {
        if (name.length() > 1) {
            int dot;
            if (name.charAt(0) == LPAREN) {
                int start = name.indexOf(RPAREN);
                dot = name.indexOf(DOT, start);
            } else {
                dot = name.indexOf(DOT);
            }
            if (dot > 0) {
                String fieldName = name.substring(0, dot);
                String rest = name.substring(dot + 1);
                Key key = createKey(fieldName);
                Value value = fields.get(key);
                if (!value.isMessageType()) {
                    throw new ParserException("Invalid option name: %s", name);
                }
                DynamicMessage msg = value.getMessage();
                return msg.get(rest);
            } else {
                Key key = createKey(name);
                return fields.get(key);
            }
        } else {
            Key key = Key.field(name);
            return fields.get(key);
        }
    }
1017188
public final void addArgument(final String name, final Object value) {
        if (name == null) {
            throw new IllegalArgumentException("The argument 'name' cannot be null!");
        }
        if (value == null) {
            throw new IllegalArgumentException("The argument 'value' cannot be null!");
        }
        arguments.put(name.trim(), value);
    }
802507
public ToStringHelper add(String name, Object value) {
    checkNotNull(name);
    addHolder(value).builder.append(name).append('=').append(value);
    return this;
  }
218828
public void addParameter(String name, Object value) {
        String subscript = "";
        
        if (name.contains("(")) {
            String[] pcs = name.split("\\(", 2);
            name = pcs[0];
            subscript = pcs[1];
            
            if (subscript.endsWith(")")) {
                subscript = subscript.substring(0, subscript.length() - 1);
            }
        }
        
        addParameter(name, subscript, value);
    }
190282
public Options param(String name, String value) {
		options.put(name, value);
		return this;
	}
985713
@Override
  public String getStringProperty(final String name) throws OptionsException {
    Object val = getProperty(name);

    if (!(val instanceof String)) {
      throw new OptionsException("org.bedework.calenv.bad.option.value");
    }

    return (String)val;
  }
476130
static protected String quote(final String value)
    {
        final StringBuilder out = new StringBuilder();
        AbstractCLA.uncompileQuoter(out, value);
        return out.toString();
    }
792195
static List<String> stringWithEq(String name, @Nullable String value) {
    if (!Strings.isNullOrEmpty(value)) {
      return Collections.singletonList("--" + name + "=" + value);
    }
    return Collections.emptyList();
  }
120731
@Override
	public void setOption(String name, boolean value) throws IOException {
		setOption(name, Boolean.toString(value));
	}
750594
public void addParam(String name, String value) {
        if (name == null) {
            throw new NullPointerException("name");
        }
        if (value == null) {
            throw new NullPointerException("value");
        }
        params.add(new Param(name, value));
    }