public static void acceptsZone ( OptionParser parser ) { parser . acceptsAll ( Arrays . asList ( OPT_Z , OPT_ZONE ) , "zone id" ) . withRequiredArg ( ) . describedAs ( "zone-id" ) . ofType ( Integer . class ) ; }
Adds OPT_Z | OPT_ZONE option to OptionParser with one argument .