@@ -258,6 +258,27 @@ private String debugState(final String prefix) {
258258 + FList .mkString (handlerRegistry .entrySet (), "\n " + prefix + " " , "\n " + prefix + " " , "" );
259259 }
260260
261+ /**
262+ * Parses the given commandline arguments.
263+ *
264+ * If no error were detected and not in dryrun-mode, the result is applied
265+ * to the config object(s).
266+ *
267+ * If any errors where detected, they will be thrown as
268+ * {@link CmdlineParserException}.
269+ *
270+ * @param dryrun
271+ * If true, only checks for errors.
272+ * @param detectHelpAndSkipValidation
273+ * If true, the given cmdline is first checked for applied help
274+ * options. In such a case, no other validation errors will be
275+ * thrown.
276+ * @param cmdline
277+ * The commandline argument to be parsed.
278+ *
279+ * @throws CmdlineParserException
280+ * If any errors were detected.
281+ */
261282 public void parse (final boolean dryrun , final boolean detectHelpAndSkipValidation , String ... cmdline ) {
262283 if (log .isDebugEnabled ()) {
263284 log .debug ("About to start parsing. dryrun: " + dryrun + ", detectHelpAndSkipValidation: "
@@ -649,6 +670,10 @@ protected CommandHandle scanCommand(final Object object) {
649670 commandAnno .hidden ());
650671 }
651672
673+ /**
674+ * Do a consistency check for the given cmdoption model (all annotated
675+ * opitons).
676+ */
652677 protected void validateOptions () {
653678 for (final OptionHandle optionHandle : options ) {
654679 for (final String reqOptionName : optionHandle .getRequires ()) {
0 commit comments