Skip to content

Commit

Permalink
Simplified AtSignExpansion code
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarg committed Aug 11, 2024
1 parent 842481f commit 06e9474
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/beust/jcommander/JCommander.java
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,7 @@ private void parseValues(String[] args, boolean validate) {
System.arraycopy(args, 0, newArgs, 0, i);

// Copy the arguments from the file
for (int j = 0; j < fileArgs.size(); j++) {
newArgs[i + j] = fileArgs.get(j);
}
System.arraycopy(fileArgs.toArray(), 0, newArgs, i, fileArgs.size());

// Copy the remaining arguments after the '@' argument
System.arraycopy(args, i + 1, newArgs, i + fileArgs.size(), args.length - i - 1);
Expand Down

0 comments on commit 06e9474

Please sign in to comment.