public static void acceptsJson ( OptionParser parser ) { parser . acceptsAll ( Arrays . asList ( OPT_J , OPT_JSON ) , "fetch key/entry by key value of json type" ) . withRequiredArg ( ) . describedAs ( "key-list" ) . withValuesSeparatedBy ( ' ' ) . ofType ( String . class ) ; }
Adds OPT_J | OPT_JSON option to OptionParser with multiple arguments .