is there any function in java which behaves like getopt from c

前端 未结 1 1751
無奈伤痛
無奈伤痛 2020-12-10 12:41

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
<         


        
相关标签:
1条回答
  • 2020-12-10 13:41

    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.

    0 讨论(0)
提交回复
热议问题