void handleNonOptionArgument( String candidate, ArgumentList arguments, OptionSet detectedOptions ) { specFor( NonOptionArgumentSpec.NAME ).handleOption( this, arguments, detectedOptions, candidate ); }
void handleNonOptionArgument( String candidate, ArgumentList arguments, OptionSet detectedOptions ) { specFor( NonOptionArgumentSpec.NAME ).handleOption( this, arguments, detectedOptions, candidate ); }
void availableIf( List<String> precedentSynonyms, String available ) { availableIf( precedentSynonyms, specFor( available ) ); }
private void validateOptionCharacters( char[] options ) { for ( char each : options ) { String option = String.valueOf( each ); if ( !isRecognized( option ) ) throw unrecognizedOption( option ); if ( specFor( option ).acceptsArguments() ) return; } }
private void validateOptionCharacters( char[] options, OptionSet detected ) { for ( char each : options ) { String option = String.valueOf( each ); if ( !isRecognized( option ) ) // GemFire Addition : Changed to include detected OptionSet throw createUnrecognizedOptionException( option, detected ); if ( specFor( option ).acceptsArguments() ) return; } }
private void validateOptionCharacters( char[] options, OptionSet detected ) { for ( char each : options ) { String option = String.valueOf( each ); if ( !isRecognized( option ) ) // GemFire Addition : Changed to include detected OptionSet throw createUnrecognizedOptionException( option, detected ); if ( specFor( option ).acceptsArguments() ) return; } }
private void validateOptionCharacters( char[] options ) { for ( char each : options ) { String option = String.valueOf( each ); if ( !isRecognized( option ) ) throw unrecognizedOption( option ); if ( specFor( option ).acceptsArguments() ) return; } }
private void validateOptionCharacters( char[] options, OptionSet detected ) { for ( char each : options ) { String option = String.valueOf( each ); if ( !isRecognized( option ) ) // GemFire Addition : Changed to include detected OptionSet throw createUnrecognizedOptionException( option, detected ); if ( specFor( option ).acceptsArguments() ) return; } }
void handleLongOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseLongOptionWithArgument( candidate ); if ( !isRecognized( optionAndArgument.key ) ) throw unrecognizedOption( optionAndArgument.key ); AbstractOptionSpec<?> optionSpec = specFor( optionAndArgument.key ); optionSpec.handleOption( this, arguments, detected, optionAndArgument.value ); }
void handleShortOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseShortOptionWithArgument( candidate ); if ( isRecognized( optionAndArgument.key ) ) { specFor( optionAndArgument.key ).handleOption( this, arguments, detected, optionAndArgument.value ); } else handleShortOptionCluster( candidate, arguments, detected ); }
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 ); } }
void handleLongOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseLongOptionWithArgument( candidate ); if ( !isRecognized( optionAndArgument.key ) ) // GemFire Addition : Add options detected so far throw createUnrecognizedOptionException( optionAndArgument.key, detected ); AbstractOptionSpec<?> optionSpec = specFor( optionAndArgument.key ); optionSpec.handleOption( this, arguments, detected, optionAndArgument.value ); }
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 ); } }
void handleShortOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseShortOptionWithArgument( candidate ); if ( isRecognized( optionAndArgument.key ) ) { specFor( optionAndArgument.key ).handleOption( this, arguments, detected, optionAndArgument.value ); } else handleShortOptionCluster( candidate, arguments, detected ); }
void handleLongOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseLongOptionWithArgument( candidate ); if ( !isRecognized( optionAndArgument.key ) ) throw unrecognizedOption( optionAndArgument.key ); AbstractOptionSpec<?> optionSpec = specFor( optionAndArgument.key ); optionSpec.handleOption( this, arguments, detected, optionAndArgument.value ); }
void handleShortOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseShortOptionWithArgument( candidate ); if ( isRecognized( optionAndArgument.key ) ) { specFor( optionAndArgument.key ).handleOption( this, arguments, detected, optionAndArgument.value ); } else handleShortOptionCluster( candidate, arguments, detected ); }
void handleShortOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseShortOptionWithArgument( candidate ); if ( isRecognized( optionAndArgument.key ) ) { specFor( optionAndArgument.key ).handleOption( this, arguments, detected, optionAndArgument.value ); } else handleShortOptionCluster( candidate, arguments, detected ); }
void handleLongOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseLongOptionWithArgument( candidate ); if ( !isRecognized( optionAndArgument.key ) ) // GemFire Addition : Add options detected so far throw createUnrecognizedOptionException( optionAndArgument.key, detected ); AbstractOptionSpec<?> optionSpec = specFor( optionAndArgument.key ); optionSpec.handleOption( this, arguments, detected, optionAndArgument.value ); }
void handleLongOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseLongOptionWithArgument( candidate ); if ( !isRecognized( optionAndArgument.key ) ) // GemFire Addition : Add options detected so far throw createUnrecognizedOptionException( optionAndArgument.key, detected ); AbstractOptionSpec<?> optionSpec = specFor( optionAndArgument.key ); optionSpec.handleOption( this, arguments, detected, optionAndArgument.value ); }
void handleShortOptionToken( String candidate, ArgumentList arguments, OptionSet detected ) { KeyValuePair optionAndArgument = parseShortOptionWithArgument( candidate ); if ( isRecognized( optionAndArgument.key ) ) { specFor( optionAndArgument.key ).handleOption( this, arguments, detected, optionAndArgument.value ); } else handleShortOptionCluster( candidate, arguments, detected ); }