public static void acceptsUrlMultiple ( OptionParser parser ) { parser . acceptsAll ( Arrays . asList ( OPT_U , OPT_URL ) , "coordinator bootstrap urls" ) . withRequiredArg ( ) . describedAs ( "url-list" ) . withValuesSeparatedBy ( ' ' ) . ofType ( String . class ) ; }
Adds OPT_U | OPT_URL option to OptionParser with multiple arguments .