Return-Path:
- CLI uses the
+ CLI uses the
Options class, as a container for
-
+
Option instances. There are two ways to create
Option
s in CLI. One of them is via the constructors,
the other way is via the factory methods defined in
@@ -66,11 +66,11 @@
The parse
method defined on
-
+
CommandLineParser takes an Options
instance and a String[]
of arguments and
returns a
-
+
CommandLine.
Modified: commons/proper/cli/trunk/src/site/xdoc/properties.xml
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/site/xdoc/properties.xml?rev=961393&r1=961392&r2=961393&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/site/xdoc/properties.xml (original)
+++ commons/proper/cli/trunk/src/site/xdoc/properties.xml Wed Jul 7 14:39:27 2010
@@ -28,10 +28,10 @@
The following are the properties that each
- Option has. All of these
+ Option has. All of these
can be set using the accessors or using the methods
defined in the
- OptionBuilder.
+ OptionBuilder.
- An
+ An
Options object must be created and the
Now we need to check if the
Now that we have created each
- Option we need
+ Option we need
to create the
- Options
+ Options
instance. This is achieved using the
- addOption
+ addOption
method of
We now need to create a
Modified: commons/proper/cli/trunk/src/site/xdoc/usage.xml
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/site/xdoc/usage.xml?rev=961393&r1=961392&r2=961393&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/site/xdoc/usage.xml (original)
+++ commons/proper/cli/trunk/src/site/xdoc/usage.xml Wed Jul 7 14:39:27 2010
@@ -45,7 +45,7 @@
Option
must be
added to it.
t
option is present. To do
this we will interrogate the
- CommandLine
+ CommandLine
object. The hasOption
method takes a
java.lang.String
parameter and returns true
if the option
represented by the java.lang.String
is present, otherwise
@@ -212,11 +212,11 @@ Option find = OptionBuilder.withArg
Options
.
CommandLineParser
. This will parse the command
line arguments, using the rules specified by the Options
and
- return an instance of CommandLine.
+ return an instance of CommandLine.