org.apache.commons.cli
Class BasicParser
java.lang.Object
   org.apache.commons.cli.Parser
org.apache.commons.cli.Parser
       org.apache.commons.cli.BasicParser
org.apache.commons.cli.BasicParser
- All Implemented Interfaces: 
- CommandLineParser
- public class BasicParser- extends Parser
The class BasicParser provides a very simple implementation of
 the flatten method.
- Author:
- John Keyes (john at integralsource.com)
- See Also:
- Parser
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BasicParser
public BasicParser()
flatten
protected String[] flatten(Options options,
                           String[] arguments,
                           boolean stopAtNonOption)
- A simple implementation of - Parser's abstract- flattenmethod.
 - Note: - optionsand- stopAtNonOptionare not used in this- flattenmethod.
 - 
 
- 
- Specified by:
- flattenin class- Parser
 
- 
- Parameters:
- options- The command line- Options
- arguments- The command line arguments to be parsed
- stopAtNonOption- Specifies whether to stop flattening
 when an non option is found.
- Returns:
- The argumentsString array.
 
Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.