As a result of the chat discussion about this between the OP and me, we came to the following conclusion:
JCommander calls himself as part of how he analyzes command structures - subcommands, each of which has its own parameter definitions.
At the top level, it extends the @ parameter and creates a new argument list that includes the contents of the file.
Then, when he calls himself, he parses this argument list again and, therefore, expands again the parameters starting with the character @.
, , , . , , , @, . , :
file1.txt
@file2.txt
file2.txt
@actualparameter
@file1.txt .
, . , :
- .
- JCommander,
@ . - kludge, ,
@, , . , .
: Jcommander .
pull Jcommander github, @, .
JCommander jc = new JCommander(params);
jc.setExpandAmpersat(false);
, 1.54.