What is the use of @syntax?

a) Allows multiple parameters to be passed
b) Allows one to put all your options into a file and pass this file as a parameter
c) Allows one to pass only one parameter
d) Allows one to pass one file containing only one parameter

1 thought on “What is the use of @syntax?”

  1. b
    Explanation: JCommander supports the @syntax, which allows us to put all our options into a file and pass this file as a parameter.
    /tmp/parameters
    -verbose
    file1
    file2
    $ java Main @/tmp/parameters/tmp/parameters
    -verbose
    file1
    file2
    $ java Main @/tmp/parameters

Leave a Comment