if (! arg.startsWith ("--"))
if (! arg.startsWith (UsageInfo.LONG_OPTION_PREFIX))
    protected final void parseParams (String args[])        throws CommandLineUsageException    {        ArrayIterator it = new ArrayIterator (args);        try        {            while (it.hasNext())            {                String arg = (String) it.next();                if (! (arg.charAt (0) == '-') )                {                    // Move iterator back, since we've already advanced                    // past the last option and retrieved the first                    // non-option.                    it.previous();                    break;                }                // First, verify that the option is legal.                OptionInfo optionInfo = null;                if (arg.length() == 2)                    optionInfo = usageInfo.getOptionInfo (arg.charAt (1));                else                {                    if (! arg.startsWith ("--"))                    {                        throw new CommandLineUsageException                            ("Option \""                           + arg                           + "\" is not a single character short option, but "                           + "doesn't start with \"--\", as long options "                           + "must.");                    }                    optionInfo = usageInfo.getOptionInfo (arg.substring (2));                }                if (optionInfo == null)                {                    throw new CommandLineUsageException                        ("Unknown option: \"" + arg + "\".");                }                // Okay, now handle our options.                if (optionInfo.longOption.equals ("logging"))                    Logger.enableLogging();                else                {                    parseCustomOption (optionInfo.shortOption,                                       optionInfo.longOption,                                       it);                }            }            processPostOptionCommandLine (it);            // Should be no parameters left now.            if (it.hasNext())                throw new CommandLineUsageException ("Too many parameters.");        }        catch (NoSuchElementException ex)        {            throw new CommandLineUsageException ("Missing parameter(s)");        }        catch (ArrayIndexOutOfBoundsException ex)        {            throw new CommandLineUsageException ("Missing parameter(s)");        }    }