Skip to content

Commit 23a4c05

Browse files
committed
Added a warning when using cft with publisher apps
1 parent c796de1 commit 23a4c05

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

srcCxx/shape_main.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ class ShapeOptions {
412412
printf(" read_next_instance()\n");
413413
printf(" --periodic-announcement <ms> : indicates the periodic participant\n");
414414
printf(" announcement period in ms. Default 0 (off)\n");
415-
printf(" --cft <expression> : ContentFilteredTopic filter expression (use quotes\n");
416-
printf(" if it contains whitespaces). Cannot be used with -c on\n");
417-
printf(" subscriber applications\n");
415+
printf(" --cft <expression> : ContentFilteredTopic filter expression (quotes\n");
416+
printf(" required around the expression). Cannot be used with\n");
417+
printf(" -c on subscriber applications\n");
418418
printf(" --size-modulo <int> : If set, the modulo operation is applied to the\n");
419419
printf(" shapesize. This will make that shapesize is in the\n");
420420
printf(" range [1,N]. This only applies if shapesize is\n");
@@ -448,6 +448,9 @@ class ShapeOptions {
448448
if (publish && take_read_next_instance == false ) {
449449
logger.log_message("warning: --take-read ignored on publisher applications", Verbosity::ERROR);
450450
}
451+
if (publish && cft_expression != NULL) {
452+
logger.log_message("warning: --cft ignored on publisher applications", Verbosity::ERROR);
453+
}
451454
if (subscribe && shapesize != 20) {
452455
logger.log_message("warning: shapesize [-z] ignored on subscriber applications", Verbosity::ERROR);
453456
}

0 commit comments

Comments
 (0)