Skip to content

Commit e9a3217

Browse files
author
John Keyes
committed
the parse method has moved from Options to CommandLineParser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@129842 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3ad51f2 commit e9a3217

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

xdocs/usage.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ options.addOption("t", false, "display current time");</source>
5050
</subsection>
5151
<subsection name="Parsing the command line arguments">
5252
<p>
53-
The <code>parse</code> methods of <code>Options</code> are used to
54-
parse the command line arguments.
53+
The <code>parse</code> methods of <code>CommandLineParser</code> are used
54+
to parse the command line arguments.
5555
</p>
56-
<source>CommandLine cmd = options.parse(args);</source>
56+
<source>CommandLineParser parser = new PosixParser();
57+
CommandLine cmd = parser.parse( options, args);</source>
5758
<p>
5859
Now we need to check if the <code>t</code> option is present. To do
5960
this we will interrogate the

0 commit comments

Comments
 (0)