Command-Line Client

The command-line interface of JOMDoc is very flexible and easy to extend with new options and commands. It provides support for commands and short/long options, automatic generation of help, etc.

Commands

New commands should be added to the org.omdoc.jomdoc.cli.cmd package. See existing commands for an example on how to define a new command. Descriptions of commands should be added to the commands.properties file.

Command Options

Options are defined in JOMDocOption, and need to be registered in the Command class to which they correspond (also in the JOMDoc class). Initialization of options is handled in JOMDocCommandEnvironment. Descriptions of options should be added to options.properties