public static void acceptsUrl ( OptionParser parser ) { parser . acceptsAll ( Arrays . asList ( OPT_U , OPT_URL ) , "bootstrap url" ) . withRequiredArg ( ) . describedAs ( "url" ) . ofType ( String . class ) ; }
Adds OPT_U | OPT_URL option to OptionParser with one argument .