From ecf8ed70a98e093c47a045726933dc9044f3052b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 Aug 2013 12:18:14 +0200 Subject: doc java version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- info/argparser.texinfo | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/info/argparser.texinfo b/info/argparser.texinfo index 8cd113a..f0b4e10 100644 --- a/info/argparser.texinfo +++ b/info/argparser.texinfo @@ -187,6 +187,18 @@ without @var{max} is named @code{testFilesMin}. and @var{opts} is a @code{HashMap}. @var{argcount} does not exist. +To populate the @code{ArgParser} with valid options, use the method +@code{add} with the option and optional, before or after, the description. +An option is created using a constructor for either @code{Argumentless}, +@code{Argumented} or @code{Variadic}. +@code{Argumentless}'s constructor takes an @code{String[]} of alternatives +and optional, before or after, the index of the primary alternative. If +the index is not after the alternative array, the alternatives parameter +is variadic and each alternative can be an argument. +@code{Argumentless}'s constructor and @code{Variadic}'s constructor also +takes a descriptive short name of a argument associated with the option +optioned anywhere, and the alterantive array is variadic if places last. + @c@node Bash version -- cgit v1.2.3-70-g09d2