Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,16 @@ protected void validateArguments() {
super.validateArguments();

if (cmdHandler.hasOption(Constants.FILE_ARG) && cmdHandler.hasOption(Constants.URL_ARG)) {
throw new IllegalArgumentException("Cannot take both a file (-f) and an URL (-u) as argument.");
throw new IllegalArgumentException("Cannot take both a file (-f) and a URL (-u) as argument.");
}
if (!(cmdHandler.hasOption(Constants.FILE_ARG) || cmdHandler.hasOption(Constants.URL_ARG))) {
throw new IllegalArgumentException("Requires either the file argument (-f) or the URL argument (-u).");
throw new IllegalArgumentException("Providing either file argument (-f) or URL argument (-u) is required.");
}
if (cmdHandler.hasOption(Constants.URL_ARG) && !cmdHandler.hasOption(Constants.CHECKSUM_ARG)) {
throw new IllegalArgumentException("The URL argument requires also the checksum argument (-c).");
throw new IllegalArgumentException("Using URL argument (-u) requires the checksum argument (-C).");
}
if (cmdHandler.hasOption(Constants.URL_ARG) && !cmdHandler.hasOption(Constants.FILE_ID_ARG)) {
throw new IllegalArgumentException("The URL argument requires also the argument for the ID of the file (-i).");
throw new IllegalArgumentException("Using URL argument (-u) requires the file ID argument (-i).");
}
}

Expand Down