Hello I am working on command line application which can accepts command line argument like
app -port 8888 -filename d:\\xyz\\xyz.pdf -dest d:\\pqr <
app -port 8888 -filename d:\\xyz\\xyz.pdf -dest d:\\pqr
There are quite a few command line parser libraries for Java out there.
A recent (as of late 2019) command line parser with a lot of momentum and features is picocli.
Some older, popular ones are commons-cli (quite old), args4j and JCommander.