- /* Show command's man page */
- ret = show_cmd_man_page(cmd_name);
-
- if (ret) {
- ERR("Cannot view man page lttng-%s(1)", cmd_name);
- perror("exec");
- ret = CMD_ERROR;
- }
+ /* Show command's help */
+ cmd_argv[0] = cmd->name;
+ cmd_argv[1] = "--help";
+ assert(cmd->func);
+ ret = cmd->func(2, cmd_argv);