@@ -75,6 +75,7 @@ bool isValidQueueKeyHexRepresentation(const char* queueKeyBuf)
75
75
// class CommandLineArguments
76
76
// ==========================
77
77
78
+ const char * CommandLineArguments::k_ALL_TYPE = " all" ;
78
79
const char * CommandLineArguments::k_MESSAGE_TYPE = " message" ;
79
80
const char * CommandLineArguments::k_QUEUEOP_TYPE = " queue-op" ;
80
81
const char * CommandLineArguments::k_JOURNALOP_TYPE = " journal-op" ;
@@ -307,8 +308,8 @@ bool CommandLineArguments::validate(bsl::string* error,
307
308
bool CommandLineArguments::isValidRecordType (const bsl::string* recordType,
308
309
bsl::ostream& stream)
309
310
{
310
- if (*recordType != k_MESSAGE_TYPE && *recordType != k_QUEUEOP_TYPE &&
311
- *recordType != k_JOURNALOP_TYPE) {
311
+ if (*recordType != k_ALL_TYPE && *recordType != k_MESSAGE_TYPE &&
312
+ *recordType != k_QUEUEOP_TYPE && *recordType != k_JOURNALOP_TYPE) {
312
313
stream << " --record-type invalid: " << *recordType << bsl::endl;
313
314
314
315
return false ; // RETURN
@@ -404,7 +405,12 @@ Parameters::Parameters(const CommandLineArguments& arguments,
404
405
arguments.d_recordType .begin ();
405
406
cit != arguments.d_recordType .end ();
406
407
++cit) {
407
- if (*cit == CommandLineArguments::k_MESSAGE_TYPE) {
408
+ if (*cit == CommandLineArguments::k_ALL_TYPE) {
409
+ d_processRecordTypes.d_message = true ;
410
+ d_processRecordTypes.d_queueOp = true ;
411
+ d_processRecordTypes.d_journalOp = true ;
412
+ }
413
+ else if (*cit == CommandLineArguments::k_MESSAGE_TYPE) {
408
414
d_processRecordTypes.d_message = true ;
409
415
}
410
416
else if (*cit == CommandLineArguments::k_QUEUEOP_TYPE) {
0 commit comments