args4j can examine your annotated source code and generate HTML table or XML for the list of command line options. You can use this in the build process to generate your documentation, so that it will be always in sync with your code.

To do so, download args4j-tools and run it as follows:

$ java -jar args4j-tools.jar path/to/my/OptionBean.java

To see all the options, run it withouy any parameter.