Table of Contents
Everything you do with JSAP leads to the same goal: a JSAPResult object that contains objects created from the parsed command line. Getting to this point requires the following steps:
This is generally accomplished through JSAP's no-argument constructor. Depending upon the complexity of your program, however, you may want to instantiate a custom JSAP subclass that also takes care of steps 2 and 3 (described below) during the construction process. This approach results in a much "cleaner" main class.
If you have a complicated command line configuration, create your own subclass of JSAP and override its constructor so it can initialize itself. This keeps your main class uncluttered.