jkeyes      2002/11/12 16:04:13

  Modified:    cli/xdocs usage.xml
  Log:
  the parse method has moved from Options to CommandLineParser
  
  Revision  Changes    Path
  1.4       +4 -3      jakarta-commons/cli/xdocs/usage.xml
  
  Index: usage.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/xdocs/usage.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- usage.xml 15 Oct 2002 22:53:32 -0000      1.3
  +++ usage.xml 13 Nov 2002 00:04:13 -0000      1.4
  @@ -50,10 +50,11 @@
         </subsection>
         <subsection name="Parsing the command line arguments">
           <p>
  -          The <code>parse</code> methods of <code>Options</code> are used to 
  -          parse the command line arguments.  
  +          The <code>parse</code> methods of <code>CommandLineParser</code> are used 
  +          to parse the command line arguments.  
           </p>
  -        <source>CommandLine cmd = options.parse(args);</source>
  +        <source>CommandLineParser parser = new PosixParser();
  +CommandLine cmd = parser.parse( options, args);</source>
           <p>
             Now we need to check if the <code>t</code> option is present.  To do
             this we will interrogate the 
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to