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.
1 parent 75e47ed commit ca97181Copy full SHA for ca97181
src/FileEncryptor.java
@@ -125,6 +125,7 @@ public static void main(String[] args) throws Exception {
125
126
// Check if password and/or file paths have been specified
127
if (argIndex + 2 >= charArgs.length) { throw new IllegalArgumentException("Not enough arguments specified" + ERROR_MSG); }
128
+ if (argIndex + 2 <= charArgs.length) { throw new IllegalArgumentException("Invalid arguments please refer to instructions" + ERROR_MSG); }
129
130
encrypt(charArgs[argIndex], new String(charArgs[argIndex + 1]), new String(charArgs[argIndex + 2]));
131
0 commit comments