/** * Validates the arguments parsed from the command line. * * @throws UsageError if the arguments are invalid. */ protected void validateArgs() throws UsageError { if (arguments.size() < 1) { throw new UsageError("No command line arguments given"); } if (!OptFlag.hasSourceArg(arguments)) { throw new UsageError("must specify at least one source file"); } }