How do I parse command line arguments in Java?

前端 未结 19 1668
终归单人心
终归单人心 2020-11-22 00:16

What is a good way of parsing command line arguments in Java?

19条回答
  •  不知归路
    2020-11-22 00:32

    I've used JOpt and found it quite handy: http://jopt-simple.sourceforge.net/

    The front page also provides a list of about 8 alternative libraries, check them out and pick the one that most suits your needs.

提交回复
热议问题