Class BasicParser

  • All Implemented Interfaces:
    CommandLineParser

    public class BasicParser
    extends Parser
    The class BasicParser provides a very simple implementation of the flatten method.
    Version:
    $Revision: 680644 $, $Date: 2008-07-29 01:13:48 -0700 (Tue, 29 Jul 2008) $
    Author:
    John Keyes (john at integralsource.com)
    • Method Detail

      • flatten

        protected java.lang.String[] flatten​(Options options,
                                             java.lang.String[] arguments,
                                             boolean stopAtNonOption)

        A simple implementation of Parser's abstract flatten method.

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

        Specified by:
        flatten in 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 arguments String array.