Java Command-Line Interfaces (Part 29): Do-It-Yourself
This series on parsing command line arguments from Java has briefly introduced 28 open source libraries that can be used to process command-line arguments from Java code. Even with these 28 libraries covered, the series has not covered all available open source libraries for parsing command line options from Java. For example, this series has not covered docopt , dolphin getopt , DPML CLI , the "other" JArgP , java-getopt , ritopt , cli-args , clio , TE-CODE Command , and likely many other libraries I'm not aware of. This post looks at considerations one might make when attempting to decide whether to roll one's own command line argument parsing code in Java versus using one of the plethora of command line parsing libraries that is already available. At first glance, it would be easy to say that someone developer their own command-line parsing code in Java might be suffering from Not Invented Here Syndrome . However, I still occasionally write my own simple command ...