Registers the specified Parameter (i.e., Switch, FlaggedOption, or UnflaggedOption) with this JSAP.
Registering an Parameter locks the parameter. Attempting to change its properties (ID, flags, etc.) while it is locked will result in a JSAPException. To unlock an Parameter, it must be unregistered from the JSAP.
@param param the Parameter to register.
@throws JSAPException if this Parameter cannot be added. Possiblereasons include:
- Another Parameter with the same ID has already been registered.
- You are attempting to register a Switch or FlaggedOption with neither a short nor long flag.
- You are attempting to register a Switch or FlaggedOption with a long or short flag that is already defined in this JSAP.
- You are attempting to register a second greedy UnflaggedOption