We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80ab9ab + ca97181 commit 4dbe19dCopy full SHA for 4dbe19d
src/FileEncryptor.java
@@ -124,6 +124,7 @@ public static void main(String[] args) throws Exception {
124
125
// Check if password and/or file paths have been specified
126
if (argIndex + 2 >= charArgs.length) { throw new IllegalArgumentException("Not enough arguments specified" + ERROR_MSG); }
127
+ if (argIndex + 2 <= charArgs.length) { throw new IllegalArgumentException("Invalid arguments please refer to instructions" + ERROR_MSG); }
128
129
encrypt(charArgs[argIndex], new String(charArgs[argIndex + 1]), new String(charArgs[argIndex + 2]));
130
0 commit comments