/**
* Indicates that at least one argument is mandatory for this parameter.
*/
- private boolean mandatory;
+ protected boolean mandatory;
private final Argument argumentType;
return new File(arguments.get(0));
}
- public int getArgumentAsInteger() {
- if (arguments.size() != 1)
- throw new RuntimeException("Parameter " + description
- + " shall have exactly 1 argument.");
- return Integer.parseInt(arguments.get(0));
- }
-
public List<File> getArgumentsAsFiles() {
final ArrayList<File> result = new ArrayList<File>();