@Override public OptionSpecBuilder acceptsAll( List<String> options, String description ) { if ( options.isEmpty() ) throw new IllegalArgumentException( "need at least one option" ); ensureLegalOptions( options ); return new OptionSpecBuilder( this, options, description ); }
public OptionSpecBuilder acceptsAll( List<String> options, String description ) { if ( options.isEmpty() ) throw new IllegalArgumentException( "need at least one option" ); ensureLegalOptions( options ); return new OptionSpecBuilder( this, options, description ); }
/** * Tells the parser to recognize the given options, and treat them as synonymous. * * @see #acceptsAll(Collection) * @param options the options to recognize and treat as synonymous * @param description a string that describes the purpose of the option. This is used when generating help * information about the parser. * @return an object that can be used to flesh out more detail about the options * @throws OptionException if any of the options contain illegal characters * @throws NullPointerException if the option list or any of its elements are {@code null} * @throws IllegalArgumentException if the option list is empty */ public OptionSpecBuilder acceptsAll( Collection<String> options, String description ) { if ( options.isEmpty() ) throw new IllegalArgumentException( "need at least one option" ); ensureLegalOptions( options ); return new OptionSpecBuilder( this, options, description ); }
/** * Tells the parser to recognize the given options, and treat them as synonymous. * * @see #acceptsAll(Collection) * @param options the options to recognize and treat as synonymous * @param description a string that describes the purpose of the option. This is used when generating help * information about the parser. * @return an object that can be used to flesh out more detail about the options * @throws OptionException if any of the options contain illegal characters * @throws NullPointerException if the option list or any of its elements are {@code null} * @throws IllegalArgumentException if the option list is empty */ public OptionSpecBuilder acceptsAll( Collection<String> options, String description ) { if ( options.isEmpty() ) throw new IllegalArgumentException( "need at least one option" ); ensureLegalOptions( options ); return new OptionSpecBuilder( this, options, description ); }
/** * Tells the parser to recognize the given options, and treat them as synonymous. * * @see #acceptsAll(Collection) * @param options the options to recognize and treat as synonymous * @param description a string that describes the purpose of the option. This is used when generating help * information about the parser. * @return an object that can be used to flesh out more detail about the options * @throws OptionException if any of the options contain illegal characters * @throws NullPointerException if the option list or any of its elements are {@code null} * @throws IllegalArgumentException if the option list is empty */ public OptionSpecBuilder acceptsAll( Collection<String> options, String description ) { if ( options.isEmpty() ) throw new IllegalArgumentException( "need at least one option" ); ensureLegalOptions( options ); return new OptionSpecBuilder( this, options, description ); }