From 0091a323bd9cb2d515f1399f61679b7b63aa8186 Mon Sep 17 00:00:00 2001 From: bohlski Date: Mon, 13 Jun 2022 10:34:04 +0200 Subject: [PATCH] Fixed wrong putfile error message and made tiny changes to others --- .../java/org/bitrepository/commandline/PutFileCmd.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitrepository-client/src/main/java/org/bitrepository/commandline/PutFileCmd.java b/bitrepository-client/src/main/java/org/bitrepository/commandline/PutFileCmd.java index 60353c0b3..580fe4a0c 100644 --- a/bitrepository-client/src/main/java/org/bitrepository/commandline/PutFileCmd.java +++ b/bitrepository-client/src/main/java/org/bitrepository/commandline/PutFileCmd.java @@ -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)."); } }