protected Options constructGnuOptions ( ) { final Options gnuOptions = new Options ( ) ; gnuOptions . addOption ( "t" , TIMEOUT_OPTION , true , "Timeout, ms. Default timeout is " + DEFAULT_TIMEOUT ) . addOption ( "r" , REGION_OPTION , true , "The name of region for this test. Default name is \"" + DEFAULT_REGION_NAME + "\"" ) . addOption ( "h" , HELP_OPTION , false , "Print usage information" ) ; @ SuppressWarnings ( "static-access" ) Option locatorsOption = OptionBuilder . hasArgs ( ) . withDescription ( "Cluster name and list of its locators. " + "There should be at least two clusters. " + "Example: -c cluster1=host1[port1],host2[port2] -c cluster2=host3[port3]" ) . withValueSeparator ( ) . withArgName ( "cluster=locators" ) . withLongOpt ( CLUSTER_OPTION ) . create ( "c" ) ; gnuOptions . addOption ( locatorsOption ) ; return gnuOptions ; }
Constructs the set of GNU options