private void handleShortOptionCluster( String candidate, ArgumentList arguments, OptionSet detected ) { char[] options = extractShortOptionsFrom( candidate ); validateOptionCharacters( options ); for ( int i = 0; i < options.length; i++ ) { AbstractOptionSpec<?> optionSpec = specFor( options[ i ] ); if ( optionSpec.acceptsArguments() && options.length > i + 1 ) { String detectedArgument = String.valueOf( options, i + 1, options.length - 1 - i ); optionSpec.handleOption( this, arguments, detected, detectedArgument ); break; } optionSpec.handleOption( this, arguments, detected, null ); } }
private void handleShortOptionCluster( String candidate, ArgumentList arguments, OptionSet detected ) { char[] options = extractShortOptionsFrom( candidate ); // GemFire Addition : Add options detected so far validateOptionCharacters( options, detected ); for ( int i = 0; i < options.length; i++ ) { AbstractOptionSpec<?> optionSpec = specFor( options[ i ] ); if ( optionSpec.acceptsArguments() && options.length > i + 1 ) { String detectedArgument = String.valueOf( options, i + 1, options.length - 1 - i ); optionSpec.handleOption( this, arguments, detected, detectedArgument ); break; } optionSpec.handleOption( this, arguments, detected, null ); } }
private void handleShortOptionCluster( String candidate, ArgumentList arguments, OptionSet detected ) { char[] options = extractShortOptionsFrom( candidate ); validateOptionCharacters( options ); for ( int i = 0; i < options.length; i++ ) { AbstractOptionSpec<?> optionSpec = specFor( options[ i ] ); if ( optionSpec.acceptsArguments() && options.length > i + 1 ) { String detectedArgument = String.valueOf( options, i + 1, options.length - 1 - i ); optionSpec.handleOption( this, arguments, detected, detectedArgument ); break; } optionSpec.handleOption( this, arguments, detected, null ); } }
private void handleShortOptionCluster( String candidate, ArgumentList arguments, OptionSet detected ) { char[] options = extractShortOptionsFrom( candidate ); // GemFire Addition : Add options detected so far validateOptionCharacters( options, detected ); for ( int i = 0; i < options.length; i++ ) { AbstractOptionSpec<?> optionSpec = specFor( options[ i ] ); if ( optionSpec.acceptsArguments() && options.length > i + 1 ) { String detectedArgument = String.valueOf( options, i + 1, options.length - 1 - i ); optionSpec.handleOption( this, arguments, detected, detectedArgument ); break; } optionSpec.handleOption( this, arguments, detected, null ); } }
private void handleShortOptionCluster( String candidate, ArgumentList arguments, OptionSet detected ) { char[] options = extractShortOptionsFrom( candidate ); // GemFire Addition : Add options detected so far validateOptionCharacters( options, detected ); for ( int i = 0; i < options.length; i++ ) { AbstractOptionSpec<?> optionSpec = specFor( options[ i ] ); if ( optionSpec.acceptsArguments() && options.length > i + 1 ) { String detectedArgument = String.valueOf( options, i + 1, options.length - 1 - i ); optionSpec.handleOption( this, arguments, detected, detectedArgument ); break; } optionSpec.handleOption( this, arguments, detected, null ); } }