org.apache.commons.cli

Class BasicParser

public class BasicParser extends Parser

The class BasicParser provides a very simple implementation of the (Options,String[],boolean) flatten method.

Author: John Keyes (john at integralsource.com)

See Also: Parser

Method Summary
protected String[]flatten(Options options, String[] arguments, boolean stopAtNonOption)

A simple implementation of Parser's abstract (Options,String[],boolean) flatten method.

Note: options and stopAtNonOption are not used in this flatten method.

Method Detail

flatten

protected String[] flatten(Options options, String[] arguments, boolean stopAtNonOption)

A simple implementation of Parser's abstract (Options,String[],boolean) flatten method.

Note: options and stopAtNonOption are not used in this flatten method.

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 arguments String array.