private void add(String value){
  if ((numberOfArgs > 0) && (values.size() > (numberOfArgs - 1))) {
    throw new RuntimeException("Cannot add value, list full.");
  }
  values.add(value);
}

private void add ( String value ) { if ( ( numberOfArgs > 0 ) && ( values . size ( ) > ( numberOfArgs - 1 ) ) ) { throw new RuntimeException ( "Cannot add value, list full." ) ; } values . add ( value ) ; }
add the value to this option . if the number of arguments is greater than zero and there is enough space in the list then add the value . otherwise , throw a runtime exception .
