protected String getArgumentValue(String arg, String[] args, String defalt) {
        String argName = getArgName(arg);
        for (int i = 1; i < args.length; i++) {
            String currentArgName = getArgName(args[i]); // return what's to left of = if there is one
            if (currentArgName.equalsIgnoreCase(argName)) {
                return getValue(args[i]);
            }
        }
        return defalt;
    }
protected String getArgumentValue ( String arg , String [ ] args , String defalt ) { String argName = getArgName ( arg ) ; for ( int i = 1 ; i < args . length ; i ++ ) { String currentArgName = getArgName ( args [ i ] ) ; if ( currentArgName . equalsIgnoreCase ( argName ) ) { return getValue ( args [ i ] ) ; } } return defalt ; }
Gets the value for the specified argument String. If the default
value argument is null, it indicates the argument is required.

No validation is done in the format of args as it was done previously.

@param arg Argument name to resolve a value for
@param args List of arguments
@param defalt Default value if the argument is not specified
@return Value of the argument, or null if there was no value.
@throws IllegalArgumentException if the argument is defined but no value
is given.