Skip to content

Commit 5160fb0

Browse files
authored
Match commands in ShapesDemo to documentation (#396)
Signed-off-by: Antón Casas <antoncasas@eprosima.com>
1 parent 0301e0d commit 5160fb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ShapesDemo/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,13 @@ bool compute_command(
438438
(void) compute_print_command(session, stream_id, 3, "create_datareader", arg1, arg1, 0, 0, 0, "");
439439
(void) uxr_run_session_time(session, 20);
440440
}
441-
else if (0 == strcmp(name, "list") || 0 == strcmp(name, "l"))
441+
else if (0 == strcmp(name, "help") || 0 == strcmp(name, "h"))
442442
{
443443
print_commands();
444444
}
445445
else
446446
{
447-
printf("%sUnknown command error, write 'l' or 'list' to show the command list.%s\n", RED_CONSOLE_COLOR,
447+
printf("%sUnknown command error, write 'h' or 'help' to show the command list.%s\n", RED_CONSOLE_COLOR,
448448
RESTORE_COLOR);
449449
shapes_demo_error = 2;
450450
}

0 commit comments

Comments
 (0)