@Override public NonOptionArgumentSpec<String> nonOptions( String description ) { NonOptionArgumentSpec<String> spec = new NonOptionArgumentSpec<>( description ); recognize( spec ); return spec; }
@Override public NonOptionArgumentSpec<String> nonOptions() { NonOptionArgumentSpec<String> spec = new NonOptionArgumentSpec<>(); recognize( spec ); return spec; }
public NonOptionArgumentSpec<String> nonOptions() { NonOptionArgumentSpec<String> spec = new NonOptionArgumentSpec<>(); recognize( spec ); return spec; }
public NonOptionArgumentSpec<String> nonOptions( String description ) { NonOptionArgumentSpec<String> spec = new NonOptionArgumentSpec<>( description ); recognize( spec ); return spec; }
/** * 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 ) ); }
public void recognizeAlternativeLongOptions( boolean recognize ) { if ( recognize ) recognize( new AlternativeLongOptionSpec() ); else recognizedOptions.remove( String.valueOf( RESERVED_FOR_EXTENSIONS ) ); }
/** * 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 ) ); }
/** * Informs an option parser that this builder's option accepts an optional argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withOptionalArg() { ArgumentAcceptingOptionSpec<String> newSpec = new OptionalArgumentOptionSpec<>( options(), description() ); parser.recognize( newSpec ); return newSpec; }
/** * Informs an option parser that this builder's option requires an argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withRequiredArg() { ArgumentAcceptingOptionSpec<String> newSpec = new RequiredArgumentOptionSpec<>( options(), description() ); parser.recognize( newSpec ); return newSpec; }
void configure( OptionParser parser ) { adjustForPosixlyCorrect( parser ); while ( hasMore() ) parser.recognize( next() ); }
/** * Informs an option parser that this builder's option requires an argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withRequiredArg() { ArgumentAcceptingOptionSpec<String> newSpec = new RequiredArgumentOptionSpec<>( options(), description() ); parser.recognize( newSpec ); return newSpec; }
/** * Informs an option parser that this builder's option requires an argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withRequiredArg() { ArgumentAcceptingOptionSpec<String> newSpec = new RequiredArgumentOptionSpec<String>( options(), description() ); parser.recognize( newSpec ); return newSpec; }
/** * Informs an option parser that this builder's option accepts an optional argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withOptionalArg() { ArgumentAcceptingOptionSpec<String> newSpec = new OptionalArgumentOptionSpec<String>( options(), description() ); parser.recognize( newSpec ); return newSpec; } }
void configure( OptionParser parser ) { adjustForPosixlyCorrect( parser ); while ( hasMore() ) parser.recognize( next() ); }
void configure( OptionParser parser ) { adjustForPosixlyCorrect( parser ); while ( hasMore() ) parser.recognize( next() ); }
/** * Informs an option parser that this builder's option requires an argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withRequiredArg() { ArgumentAcceptingOptionSpec<String> newSpec = new RequiredArgumentOptionSpec<String>( options(), description() ); parser.recognize( newSpec ); return newSpec; }
/** * Informs an option parser that this builder's option accepts an optional argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withOptionalArg() { ArgumentAcceptingOptionSpec<String> newSpec = new OptionalArgumentOptionSpec<String>( options(), description() ); parser.recognize( newSpec ); return newSpec; } }
void configure( OptionParser parser ) { adjustForPosixlyCorrect( parser ); while ( hasMore() ) parser.recognize( next() ); }
/** * Informs an option parser that this builder's option requires an argument. * * @return a specification for the option */ public ArgumentAcceptingOptionSpec<String> withRequiredArg() { ArgumentAcceptingOptionSpec<String> newSpec = new RequiredArgumentOptionSpec<String>( options(), description() ); parser.recognize( newSpec ); return newSpec; }
void configure( OptionParser parser ) { adjustForPosixlyCorrect( parser ); while ( hasMore() ) parser.recognize( next() ); }