2323#include < algorithm>
2424#include < iostream>
2525
26- #define DEFAULT_OPTIONS_CASSSANDRA_VERSION CCM::CassVersion (" 3.11.2 " )
27- #define DEFAULT_OPTIONS_DSE_VERSION CCM::DseVersion (" 6.0.1 " )
26+ #define DEFAULT_OPTIONS_CASSSANDRA_VERSION CCM::CassVersion (" 3.11.3 " )
27+ #define DEFAULT_OPTIONS_DSE_VERSION CCM::DseVersion (" 6.0.3 " )
2828
2929// Initialize the defaults for all the options
3030bool Options::is_initialized_ = false;
@@ -87,14 +87,9 @@ bool Options::initialize(int argc, char* argv[]) {
8787 }
8888 // Integration test options
8989 if (key.compare (" --keep-clusters" ) == 0 ) {
90- if (!value.empty ()) {
91- is_keep_clusters_ = bool_value (value);
92- }
93- else {
94- std::cerr << " Missing Keep Cluster(s) Boolean: Using default " << is_keep_clusters_ << std::endl;
95- }
90+ is_keep_clusters_ = true ;
9691 }
97- if (key.compare (" --log-tests" ) == 0 ) {
92+ else if (key.compare (" --log-tests" ) == 0 ) {
9893 if (!value.empty ()) {
9994 is_log_tests_ = bool_value (value);
10095 } else {
@@ -306,10 +301,10 @@ void Options::print_help() {
306301 << " Password to use for DSE download authentication." << std::endl;
307302 std::cout << " --git" << std::endl << " "
308303 << " Indicate Cassandra/DSE server download should be obtained from" << std::endl
309- << " ASF/GitHub." << std::endl;
304+ << " ASF/GitHub." << std::endl;
310305 std::cout << " --git=[BRANCH_OR_TAG]" << std::endl << " "
311306 << " Indicate Cassandra/DSE server branch/tag should be obtained from" << std::endl
312- <<" ASF/GitHub." << std::endl;
307+ << " ASF/GitHub." << std::endl;
313308 std::cout << " --install-dir=[INSTALL_DIR]" << std::endl << " "
314309 << " Indicate Cassandra/DSE installation directory to use." << std::endl;
315310 std::cout << " --prefix=[PREFIX]" << std::endl << " "
@@ -335,6 +330,9 @@ void Options::print_help() {
335330 << " Private key filename to use for remote deployment. The default is" << std::endl
336331 << " " << private_key () << " ." << std::endl;
337332#endif
333+ std::cout << " --keep-clusters" << std::endl << " "
334+ << " Indicate CCM clusters should not be removed after tests terminate."
335+ << std::endl;
338336 std::cout << std::endl;
339337}
340338
0 commit comments