AlternativeLongOptionSpec() { super( singletonList( RESERVED_FOR_EXTENSIONS ), true, "Alternative form of long options" ); describedAs( "opt=value" ); }
private AbstractOptionSpec<?> handleReservedForExtensionsToken() { if ( !hasMore() ) return new NoArgumentOptionSpec( RESERVED_FOR_EXTENSIONS ); if ( specification.charAt( index ) == ';' ) { ++index; return new AlternativeLongOptionSpec(); } return null; }
@Override protected void detectOptionArgument( OptionParser parser, ArgumentList arguments, OptionSet detectedOptions ) { if ( !arguments.hasMore() ) // GemFire Addition: Changed to include OptionSet throw new OptionMissingRequiredArgumentException( options(), detectedOptions ); arguments.treatNextAsLongOption(); } }
public void recognizeAlternativeLongOptions( boolean recognize ) { if ( recognize ) recognize( new AlternativeLongOptionSpec() ); else recognizedOptions.remove( String.valueOf( RESERVED_FOR_EXTENSIONS ) ); }
@Override protected void detectOptionArgument( OptionParser parser, ArgumentList arguments, OptionSet detectedOptions ) { if ( !arguments.hasMore() ) // GemFire Addition: Changed to include OptionSet throw new OptionMissingRequiredArgumentException( options(), detectedOptions ); arguments.treatNextAsLongOption(); } }
private AbstractOptionSpec<?> handleReservedForExtensionsToken() { if ( !hasMore() ) return new NoArgumentOptionSpec( RESERVED_FOR_EXTENSIONS ); if ( specification.charAt( index ) == ';' ) { ++index; return new AlternativeLongOptionSpec(); } return null; }
AlternativeLongOptionSpec() { super( singletonList( RESERVED_FOR_EXTENSIONS ), true, "Alternative form of long options" ); describedAs( "opt=value" ); }
@Override protected void detectOptionArgument( OptionParser parser, ArgumentList arguments, OptionSet detectedOptions ) { if ( !arguments.hasMore() ) // GemFire Addition: Changed to include OptionSet throw new OptionMissingRequiredArgumentException( options(), detectedOptions ); arguments.treatNextAsLongOption(); } }
@Override public void recognizeAlternativeLongOptions( boolean recognize ) { if ( recognize ) recognize( new AlternativeLongOptionSpec() ); else recognizedOptions.remove( String.valueOf( RESERVED_FOR_EXTENSIONS ) ); }
AlternativeLongOptionSpec() { super( singletonList( RESERVED_FOR_EXTENSIONS ), true, "Alternative form of long options" ); describedAs( "opt=value" ); }
private AbstractOptionSpec<?> handleReservedForExtensionsToken() { if ( !hasMore() ) return new NoArgumentOptionSpec( RESERVED_FOR_EXTENSIONS ); if ( specification.charAt( index ) == ';' ) { ++index; return new AlternativeLongOptionSpec(); } return null; }
AlternativeLongOptionSpec() { super( singletonList( RESERVED_FOR_EXTENSIONS ), true, Messages.message( Locale.getDefault(), "joptsimple.HelpFormatterMessages", AlternativeLongOptionSpec.class, "description" ) ); describedAs( Messages.message( Locale.getDefault(), "joptsimple.HelpFormatterMessages", AlternativeLongOptionSpec.class, "arg.description" ) ); }
/** * Tells the parser either to recognize or ignore <kbd>"-W"</kbd>-style long options. * * @param recognize {@code true} if the parser is to recognize the special style of long options */ public void recognizeAlternativeLongOptions( boolean recognize ) { if ( recognize ) recognize( new AlternativeLongOptionSpec() ); else recognizedOptions.remove( String.valueOf( RESERVED_FOR_EXTENSIONS ) ); }
AlternativeLongOptionSpec() { super( singletonList( RESERVED_FOR_EXTENSIONS ), true, Messages.message( Locale.getDefault(), "joptsimple.HelpFormatterMessages", AlternativeLongOptionSpec.class, "description" ) ); describedAs( Messages.message( Locale.getDefault(), "joptsimple.HelpFormatterMessages", AlternativeLongOptionSpec.class, "arg.description" ) ); }
/** * Tells the parser either to recognize or ignore <kbd>"-W"</kbd>-style long options. * * @param recognize {@code true} if the parser is to recognize the special style of long options */ public void recognizeAlternativeLongOptions( boolean recognize ) { if ( recognize ) recognize( new AlternativeLongOptionSpec() ); else recognizedOptions.remove( String.valueOf( RESERVED_FOR_EXTENSIONS ) ); }
private AbstractOptionSpec<?> handleReservedForExtensionsToken() { if ( !hasMore() ) return new NoArgumentOptionSpec( RESERVED_FOR_EXTENSIONS ); if ( specification.charAt( index ) == ';' ) { ++index; return new AlternativeLongOptionSpec(); } return null; }
private AbstractOptionSpec<?> handleReservedForExtensionsToken() { if ( !hasMore() ) return new NoArgumentOptionSpec( RESERVED_FOR_EXTENSIONS ); if ( specification.charAt( index ) == ';' ) { ++index; return new AlternativeLongOptionSpec(); } return null; }
/** * Tells the parser either to recognize or ignore <kbd>"-W"</kbd>-style long options. * * @param recognize {@code true} if the parser is to recognize the special style of long options */ public void recognizeAlternativeLongOptions( boolean recognize ) { if ( recognize ) recognize( new AlternativeLongOptionSpec() ); else recognizedOptions.remove( String.valueOf( RESERVED_FOR_EXTENSIONS ) ); }