X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Flttng.c;fp=src%2Fbin%2Flttng%2Flttng.c;h=ecfea53ff4b36121c8f56b0747e66298968b57ba;hp=b3ee2428640f945d1b4bf68736f1c2a91469edc0;hb=4fc83d948cea6b10484e65f004a6c167e71ac440;hpb=cf0bcb51ea857687a353d2851e572dba6cc63cb0 diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index b3ee24286..ecfea53ff 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -33,6 +33,14 @@ #include "command.h" +static const char *help_msg = +#ifdef LTTNG_EMBED_HELP +#include +#else +NULL +#endif +; + /* Variables */ static char *progname; int opt_no_sessiond; @@ -316,10 +324,9 @@ static int parse_args(int argc, char **argv) ret = 0; goto end; case 'h': - ret = utils_show_man_page(1, "lttng"); - + ret = utils_show_help(1, "lttng", help_msg); if (ret) { - ERR("Cannot view man page lttng(1)"); + ERR("Cannot show --help for `lttng`"); perror("exec"); } goto end;