예제 #1
0
 /**
  * Adds a new positional argument to be parsed from the command line
  *
  * @param arg a new instance of a positional argument If a positional argument is not supplied,
  *     the program should exit, and the usage information should be displayed along with the error
  *     stating the missing argument. If an additional (i.e., one too many) positional argument is
  *     specified, then the program should exit, and the usage information should be displayed
  *     along with the error stating the additional argument.
  */
 public void addPositionalArgument(PositionalArgument arg) {
   posCount++;
   arg.setPosition(posCount);
   positionalArgumentList.add(arg);
 }